1 (edited by graabein 2015-01-23 22:33:25)

Topic: Can not receive mail at hostmaster@ and abuse@

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7 Wheezy 64bit
- Related log if you're reporting an issue:
====

I have just installed iRedMail on a fresh Debian 7.  Followed the installguide for Debian.

The only configuration change I have done is:
[Greylisting]
enable=0

I am able to send and receive email at postmaster@exampledomain.com, and send and receive email on another useraccount I have created in the iredadmin panel.

I use this tool to check my configuration: http://www.webdnstools.com/dnstools/che … in-results

This test shows that I am not able to receive email at hostmaster@exampledomain.com and abuse@exampledomain.com

I then followed the steps shown here: http://www.iredmail.org/wiki/index.php? … al_aliases

and added the following to main.cf.2015.01.23.12.36.06

smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/accept_special

It did not help.

What can I do to allow receiving emails at hostmaster@ and abuse@?

----

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

2

Re: Can not receive mail at hostmaster@ and abuse@

Here is tail of mail.log when I use webdnstools to check my domain:

root@mailserver:~# tail -f /var/log/mail.log
Jan 23 15:18:04 mailserver postfix/smtpd[3789]: disconnect from localhost[127.0.0.1]
Jan 23 15:18:04 mailserver postfix/cleanup[3778]: 8087340F21: message-id=<20150123141803.E292F40E0D@mailserver.myexampledomain.org>
Jan 23 15:18:04 mailserver postfix/qmgr[3419]: 8087340F21: from=<amavis@mailserver.myexampledomain.org>, size=1401, nrcpt=1 (queue active)
Jan 23 15:18:04 mailserver postfix/local[3792]: 759F040E26: to=<amavis@mailserver.myexampledomain.org>, relay=local, delay=0.05, delays=0.01/0.03/0/0.01, dsn=2.0.0, status=sent (forwarded as 8087340F21)
Jan 23 15:18:04 mailserver postfix/qmgr[3419]: 759F040E26: removed
Jan 23 15:18:04 mailserver amavis[2466]: (02466-01) Passed CLEAN {RelayedInternal}, MYUSERS <amavis@mailserver.myexampledomain.org> -> <amavis@mailserver.myexampledomain.org>, Message-ID: <20150123141803.E292F40E0D@mailserver.myexampledomain.org>, mail_id: aofD6QfLWJgM, Hits: 0, size: 709, queued_as: 759F040E26, 607 ms
Jan 23 15:18:04 mailserver postfix/smtp[3784]: E292F40E0D: to=<amavis@mailserver.myexampledomain.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.68, delays=0.03/0.01/0.02/0.62, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 759F040E26)
Jan 23 15:18:04 mailserver postfix/qmgr[3419]: E292F40E0D: removed
Jan 23 15:18:04 mailserver postfix/pipe[3794]: 8087340F21: to=<postmaster@myexampledomain.org>, relay=dovecot, delay=0.16, delays=0/0.03/0/0.12, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 23 15:18:04 mailserver postfix/qmgr[3419]: 8087340F21: removed
Jan 23 15:22:29 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:29 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:29 mailserver postfix/smtpd[3832]: lost connection after CONNECT from unknown[173.255.210.37]
Jan 23 15:22:29 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]
Jan 23 15:22:29 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:29 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:30 mailserver postfix/smtpd[3832]: NOQUEUE: reject: RCPT from unknown[173.255.210.37]: 550 5.1.1 <hostmaster@myexampledomain.org>: Recipient address rejected: User unknown in virtual mailbox table; from=<check@user.com> to=<hostmaster@myexampledomain.org> proto=ESMTP helo=<mail.webdnstools.com>
Jan 23 15:22:30 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]
Jan 23 15:22:32 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:32 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:32 mailserver postfix/smtpd[3832]: lost connection after CONNECT from unknown[173.255.210.37]
Jan 23 15:22:32 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]
Jan 23 15:22:32 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:32 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:32 mailserver postfix/smtpd[3832]: E7F5940DE6: client=unknown[173.255.210.37]
Jan 23 15:22:33 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]
Jan 23 15:22:33 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:33 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:33 mailserver postfix/smtpd[3832]: lost connection after CONNECT from unknown[173.255.210.37]
Jan 23 15:22:33 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]
Jan 23 15:22:33 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:33 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: 03CFD40DE6: client=unknown[173.255.210.37]
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: lost connection after CONNECT from unknown[173.255.210.37]
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: warning: hostname webdnstools.com does not resolve to address 173.255.210.37
Jan 23 15:22:34 mailserver postfix/smtpd[3832]: connect from unknown[173.255.210.37]
Jan 23 15:22:35 mailserver postfix/smtpd[3832]: NOQUEUE: reject: RCPT from unknown[173.255.210.37]: 550 5.1.1 <abuse@myexampledomain.org>: Recipient address rejected: User unknown in virtual mailbox table; from=<check@user.com> to=<abuse@myexampledomain.org> proto=ESMTP helo=<mail.webdnstools.com>
Jan 23 15:22:35 mailserver postfix/smtpd[3832]: disconnect from unknown[173.255.210.37]

3

Re: Can not receive mail at hostmaster@ and abuse@

graabein wrote:

This test shows that I am not able to receive email at hostmaster@exampledomain.com and abuse@exampledomain.com

iRedMail doesn't create these two mail accounts during installation, so this is expected behavior.

You can create them as mail alias accounts, forward to another existing mail user. No need to modify Postfix files.

By the way, we use /etc/postfix/main.cf, not "main.cf.xxxx".

4 (edited by graabein 2015-01-23 23:55:42)

Re: Can not receive mail at hostmaster@ and abuse@

ZhangHuangbin wrote:
graabein wrote:

This test shows that I am not able to receive email at hostmaster@exampledomain.com and abuse@exampledomain.com

iRedMail doesn't create these two mail accounts during installation, so this is expected behavior.

You can create them as mail alias accounts, forward to another existing mail user. No need to modify Postfix files.

By the way, we use /etc/postfix/main.cf, not "main.cf.xxxx".

Thank you, but I am a still a bit confused.

In the content of /etc/postfix/aliases I see that hostmaster and abuse and a few others already have mailaliases

mailer-daemon: postmaster
postmaster: root
#nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
#clamav: root
www-data: root
nobody: root
vmail: root
root: postmaster@myexampledomain.com
cluebringer: root
clamav: root
amavis: root
virusalert: root

So I would expect mail to hostmaster and abuse, to be forwardet to "root" which again send these emails to postmaster@myexampledomain.com?  Is this wrong thinking?

BTW, I installed iRedMail on a fresh Debian box, and assume main.cf.2015.01.23.12.36.06 was created during that installation, there is also a master.cf file with the same date attached to it.  These should not be used, is that what you are saying?

5

Re: Can not receive mail at hostmaster@ and abuse@

graabein wrote:

In the content of /etc/postfix/aliases I see that hostmaster and abuse and a few others already have mailaliases

/etc/postfix/aliases is used for system accounts, not for virtual mail accounts.

graabein wrote:

BTW, I installed iRedMail on a fresh Debian box, and assume main.cf.2015.01.23.12.36.06 was created during that installation, there is also a master.cf file with the same date attached to it.  These should not be used, is that what you are saying?

Files with a timestamp in file name was created as a backup by iRedMail during installation.

You may want to check this tutorial to understand which config files are used:
http://www.iredmail.com/docs/file.locat … ml#postfix

6

Re: Can not receive mail at hostmaster@ and abuse@

I understand better now, thank you for your help.

hostmaster and abuse accounts now created and redirected to postmaster@myexampledomain.com.  All working well :-)