bug - Additional email addresses creates wrong entries in Aliases causing Mail delivery failed.

Steps to reproduce.

Click on a subserver under a virtual server.

Click Edit users.

Either Create a new user, or Edit an existing user by clicking on the user name.

You'll see "Edit User", "Virtual domain user mailbox details".

For our example, email address is admin    @mydomain.com

IMAP login is admin.mydomain

Click on "Email settings", "Additional email addresses".

Hover over the label "Additional email addresses" and mouse pointer turns into the "help poniter".

Click the label "Additional email addresses", it shows the popup box, "This text box can be used to easily add extra email aliases for this user. These aliases will also be visible and editable in the mail aliases list. "

Enter the following in the box, one per line:

administrator@mydomain.com
administration@mydomain.com

Click the "Save" button at the bottom of the page.

On the menu (left side of page), click "Mail Aliases."

See the entries:

administration       Address admin.mydomain
administrator            Address admin.mydomain

Try sending email to those alias addresses. You get bounces when you send to the alias administrator@mydomain.com

Are the above aliase entries incorrect / broken?

Shouldn't the aliases be set like this?...

administration       User admin.mydomain
administrator            User admin.mydomain

...?

Status: 
Active

Comments

That should work - what gets logged to your mail server log (typically /var/log/mail.log) when you send email to the administrator address?

Oct  5 21:28:57 server1 postgrey[6417]: action=greylist, reason=new, client_name=blu004-omc3s27.hotmail.com, client_address=65.55.116.102, sender=xxxxxxxxxxxx@hotmail.com, recipient=administrator@mydomain.com
Oct  5 21:28:57 server1 postfix/smtpd[11839]: NOQUEUE: reject: RCPT from blu004-omc3s27.hotmail.com[65.55.116.102]: 450 4.2.0 <administrator@mydomain.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/mydomain.com.html; from=<xxxxxxxxxxxx@hotmail.com> to=<administrator@mydomain.com> proto=ESMTP helo=<BLU004-OMC3S27.hotmail.com>
Oct  5 21:29:57 server1 postgrey[6417]: action=greylist, reason=early-retry (240s missing), client_name=blu004-omc3s27.hotmail.com, client_address=65.55.116.102, sender=xxxxxxxxxxxx@hotmail.com, recipient=administrator@mydomain.com
Oct  5 21:29:57 server1 postfix/smtpd[11839]: NOQUEUE: reject: RCPT from blu004-omc3s27.hotmail.com[65.55.116.102]: 450 4.2.0 <administrator@mydomain.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/mydomain.com.html; from=<xxxxxxxxxxxx@hotmail.com> to=<administrator@mydomain.com> proto=ESMTP helo=<BLU004-OMC3S27.hotmail.com>
Oct  5 21:30:56 server1 postgrey[6417]: action=greylist, reason=early-retry (181s missing), client_name=blu004-omc3s27.hotmail.com, client_address=65.55.116.102, sender=xxxxxxxxxxxx@hotmail.com, recipient=administrator@mydomain.com
Oct  5 21:30:56 server1 postfix/smtpd[11839]: NOQUEUE: reject: RCPT from blu004-omc3s27.hotmail.com[65.55.116.102]: 450 4.2.0 <administrator@mydomain.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/mydomain.com.html; from=<xxxxxxxxxxxx@hotmail.com> to=<administrator@mydomain.com> proto=ESMTP helo=<BLU004-OMC3S27.hotmail.com>
Oct  5 21:31:56 server1 postgrey[6417]: action=greylist, reason=early-retry (121s missing), client_name=blu004-omc3s27.hotmail.com, client_address=65.55.116.102, sender=xxxxxxxxxxxx@hotmail.com, recipient=administrator@mydomain.com
Oct  5 21:31:56 server1 postfix/smtpd[11839]: NOQUEUE: reject: RCPT from blu004-omc3s27.hotmail.com[65.55.116.102]: 450 4.2.0 <administrator@mydomain.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/mydomain.com.html; from=<xxxxxxxxxxxx@hotmail.com> to=<administrator@mydomain.com> proto=ESMTP helo=<BLU004-OMC3S27.hotmail.com>
Oct  5 21:33:57 server1 postgrey[6417]: action=pass, reason=triplet found, delay=300, client_name=blu004-omc3s27.hotmail.com, client_address=65.55.116.102, sender=xxxxxxxxxxxx@hotmail.com, recipient=administrator@mydomain.com
Oct  5 21:33:57 server1 milter-greylist: (unknown id): skipping greylist because this is the default action, (from=<xxxxxxxxxxxx@hotmail.com>, rcpt=<administrator@mydomain.com>, addr=blu004-omc3s27.hotmail.com[65.55.116.102]) ACL 81
Oct  5 21:34:01 server1 postfix/local[12750]: 336431A302D: to=<admin.mydomain@server1.serverdomain.com>, orig_to=<administrator@mydomain.com>, relay=local, delay=4.3, delays=0.22/0/0/4.1, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)

The manually fixed alias works and email gets delivered thru it. :)

The alias that was software generated by virtualmin, email seems to have not been getting delivered thru it. :(

I'm not seeing any bounces in that log you pasted though - perhaps that was the wrong section of the log file?

I believe this is not actually a bug, but a corner case due to the fact that my main domain and subdomain are hosted in two different servers.

I sent mail from a (non-virtualmin external) server that is the authoritative server for the main domain, to a subserver on the virtualmin server, whose FQDN is a subdomain of the external, non-virtualmin server.

It appears Virtualmin is throwing a fit ie rejecting the mail because it believes that the email sender domain is possibly forged.

I probably just haven't properly gotten the two servers to recognize their own limited authority.

They each think they are the full authoritative mail server for the domain and the subdomain..!

In fact one is authoritative for the main domain, the other is authoritative for the subdomain.

Can you post the error message that you are setting in the mail log, or the report from spamassassin?