1

Topic: Own domain mail account and ISP mail account -> follow-up

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version: Ubuntu 20.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

I would like to follow up on my issue described in this post.

I followed the issue you reported at https://www.sogo.nu/bugs/view.php?id=5078 and modified sogo.conf as follows:

SOGoSMTPServer = "smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost";
SOGoMailingMechanism = smtp;
SOGoSMTPAuthenticationType = PLAIN;

Unfortunately, Outlook is still sending as 'isp.mail@mydomain.eu' instead of 'myfirstname.mylastname@isp.com' :-(

From Roundcube and SoGo, it works fine as before.

My SoGo version is nightly build 5.1.1.20210628-1

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Own domain mail account and ISP mail account -> follow-up

AGI wrote:

Unfortunately, Outlook is still sending as 'isp.mail@mydomain.eu' instead of 'myfirstname.mylastname@isp.com' :-(

I don't understand what the issue is. sad

3

Re: Own domain mail account and ISP mail account -> follow-up

ZhangHuangbin wrote:
AGI wrote:

Unfortunately, Outlook is still sending as 'isp.mail@mydomain.eu' instead of 'myfirstname.mylastname@isp.com' :-(

I don't understand what the issue is. sad

It's all explained in my original post

Basically, I have a POP3 e-mail address with my ISP, let's say myfirstname.mylastname@isp.com, which I need to have as IMAP in order to be able to consult those mails from any device.

in order to host the mails of my e-mail account provided by my ISP (myfirstname.mylastname@isp.com), I created in iredadmin a second user under my domain: isp.mail@mydomain.eu . Mails are retrieved from my ISP’s POP3 server via Getmail.

In order to be able to send mails via my ISP's SMTP server, I made a couple of changes:

1. Setting in /opt/iredapd/settings.py :

ALLOWED_LOGIN_MISMATCH_SENDERS = ['isp.mail@mydomain.eu']

2. Changing the identity in Roundcube under Settings>Identities

3. Changing SOGoMailCustomFromEnabled = NO; to YES in /etc/sogo/sogo.conf, which allows to change the identity of the isp.mail@mydomain.eu user in SOGo under Settings>Mail>IMAP accounts).

So sending mails as myfirstname.mylastname@isp.com from Roundcube and SoGo works without any problems.

Unfortunately, it still doesn't work from Outlook with the following Exchange ActiveSync settings:

E-mail address: myfirstname.mylastname@isp.com
Mail server: mail.mydomain.eu
User Name: isp.mail@mydomain.eu
Password: password for isp.mail@mydomain.eu

I can see in the non-delivery message that the mail was sent as isp.mail@mydomain.eu instead of myfirstname.mylastname@isp.com.

Sending as isp.mail@mydomain.eu results in non-delivery because it's blocked by Spamhaus and getting on their whitelist with a dynamic IP is a lost cause.

4

Re: Own domain mail account and ISP mail account -> follow-up

Try Postfix parameter sender_canonical_maps:
http://www.postfix.org/postconf.5.html# … nical_maps

5

Re: Own domain mail account and ISP mail account -> follow-up

ZhangHuangbin wrote:

Try Postfix parameter sender_canonical_maps:
http://www.postfix.org/postconf.5.html# … nical_maps

You're a star, it woooorks !!!  smile smile

Coffee is on me !

6

Re: Own domain mail account and ISP mail account -> follow-up

Thanks for the coffee. smile