1 (edited by wazl 2009-07-12 22:29:53)

Topic: can't recieve mail

Hi!

I just followed a tutorial on howtoforge ( http://howtoforge.com/iredmail-mail-ser … bian-5.0.1 ) on howto install iRedMail. Everything went smooth and the installation didn't report any error.

Of course the first thing is to try it out if it works. I login to roundcubemail and to send a mail to a gmail account and I recieve the mail. So sending is working. The next thing I try is to send from gmail to mydomain.net, but I don't recieve the mail :S

I've tried to google it, but I can't find anything usefull. My ports on firewall are open. The /var/log/mail.log shows no error or rejection, only the usual stuff(logging..).

If I try to send mail from user1@mydomain.net to user2@mydomain.net it does get recieved.

A friendly person on irc channel #iredmail pointed out to me that it could be a filter problem.

Does anyone have an idea?

Btw great work on iRedMail, it makes making mail server much easier;)

----

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

2

Re: can't recieve mail

Please paste related log messages in /var/log/maillog or /var/log/mail.log.

I think you will receive the mail moment later due to greylist.

3 (edited by wazl 2009-07-12 23:43:46)

Re: can't recieve mail

this is tail -n60 /var/log/mail.log

Jul 12 18:01:01 autumnsun cleanup: expired: 0 records
Jul 12 18:01:01 autumnsun cleanup: expiring helo records older than 7 days (1247414461)
Jul 12 18:01:01 autumnsun cleanup: expired: 0 records
Jul 12 18:01:01 autumnsun cleanup: expiring throttlerecipient records older than 31 days (1244736061)
Jul 12 18:01:01 autumnsun cleanup: expired: 0 records
Jul 12 18:57:56 autumnsun postfix/smtpd[12069]: connect from localhost[127.0.0.1]
Jul 12 18:57:56 autumnsun postfix/smtpd[12069]: DB3465560B5: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=myuser1@mydomain.net
Jul 12 18:57:56 autumnsun postfix/cleanup[12073]: DB3465560B5: message-id=<7ba18192ecfd82ac634cd6a2cc79bae5@127.0.0.1>
Jul 12 18:57:56 autumnsun postfix/qmgr[10406]: DB3465560B5: from=<myuser1@mydomain.net>, size=531, nrcpt=1 (queue active)
Jul 12 18:57:56 autumnsun roundcube: [12-Jul-2009 18:57:56 +0200]: User myuser1@mydomain.net [1.1.1.18]; Message for <myuser2@mydomain.net>; 250: 2.0.0 Ok: queued as DB3465560B5
Jul 12 18:57:56 autumnsun postfix/smtpd[12069]: disconnect from localhost[127.0.0.1]
Jul 12 18:57:57 autumnsun postfix/smtpd[12076]: connect from localhost[127.0.0.1]
Jul 12 18:57:57 autumnsun postfix/smtpd[12076]: 0E2A45560B6: client=localhost[127.0.0.1]
Jul 12 18:57:57 autumnsun postfix/cleanup[12073]: 0E2A45560B6: message-id=<7ba18192ecfd82ac634cd6a2cc79bae5@127.0.0.1>
Jul 12 18:57:57 autumnsun postfix/qmgr[10406]: 0E2A45560B6: from=<myuser1@mydomain.net>, size=1378, nrcpt=1 (queue active)
Jul 12 18:57:57 autumnsun postfix/smtpd[12076]: disconnect from localhost[127.0.0.1]
Jul 12 18:57:57 autumnsun amavis[10738]: (10738-02) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <myuser1@mydomain.net> -> <myuser2@mydomain.net>, Message-ID: <7ba18192ecfd82ac634cd6a2cc79bae5@127.0.0.1>, mail_id: Ni7SHCLkUhON, Hits: -, size: 531, queued_as: 0E2A45560B6, 184 ms
Jul 12 18:57:57 autumnsun postfix/smtp[12074]: DB3465560B5: to=<myuser2@mydomain.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.24, delays=0.03/0.01/0/0.19, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=10738-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0E2A45560B6)
Jul 12 18:57:57 autumnsun postfix/qmgr[10406]: DB3465560B5: removed
Jul 12 18:57:57 autumnsun postfix/pipe[12080]: 0E2A45560B6: to=<myuser2@mydomain.net>, relay=dovecot, delay=0.09, delays=0.03/0.04/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Jul 12 18:57:57 autumnsun postfix/qmgr[10406]: 0E2A45560B6: removed
Jul 12 18:58:14 autumnsun roundcube: [12-Jul-2009 18:58:14 +0200]: Successful login for myuser2@mydomain.net (id 1) from 1.1.1.18
Jul 12 18:58:28 autumnsun postfix/smtpd[12069]: connect from localhost[127.0.0.1]
Jul 12 18:58:28 autumnsun postfix/smtpd[12069]: 731945560B5: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=myuser2@mydomain.net
Jul 12 18:58:28 autumnsun postfix/cleanup[12073]: 731945560B5: message-id=<58c542e4dcb24a48417bf8ce68ae6620@127.0.0.1>
Jul 12 18:58:28 autumnsun postfix/qmgr[10406]: 731945560B5: from=<myuser2@mydomain.net>, size=508, nrcpt=1 (queue active)
Jul 12 18:58:28 autumnsun roundcube: [12-Jul-2009 18:58:28 +0200]: User myuser2@mydomain.net [1.1.1.18]; Message for <myuser1@mydomain.net>; 250: 2.0.0 Ok: queued as 731945560B5
Jul 12 18:58:28 autumnsun postfix/smtpd[12069]: disconnect from localhost[127.0.0.1]
Jul 12 18:58:28 autumnsun postfix/smtpd[12076]: connect from localhost[127.0.0.1]
Jul 12 18:58:28 autumnsun postfix/smtpd[12076]: 97D0F5560B6: client=localhost[127.0.0.1]
Jul 12 18:58:28 autumnsun postfix/cleanup[12073]: 97D0F5560B6: message-id=<58c542e4dcb24a48417bf8ce68ae6620@127.0.0.1>
Jul 12 18:58:28 autumnsun postfix/qmgr[10406]: 97D0F5560B6: from=<myuser2@mydomain.net>, size=1355, nrcpt=1 (queue active)
Jul 12 18:58:28 autumnsun postfix/smtpd[12076]: disconnect from localhost[127.0.0.1]
Jul 12 18:58:28 autumnsun amavis[10739]: (10739-02) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <myuser2@mydomain.net> -> <myuser1@mydomain.net>, Message-ID: <58c542e4dcb24a48417bf8ce68ae6620@127.0.0.1>, mail_id: H+yZ5ccrR6qy, Hits: -, size: 508, queued_as: 97D0F5560B6, 162 ms
Jul 12 18:58:28 autumnsun postfix/smtp[12074]: 731945560B5: to=<myuser1@mydomain.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.2, delays=0.03/0/0.01/0.17, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=10739-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 97D0F5560B6)
Jul 12 18:58:28 autumnsun postfix/qmgr[10406]: 731945560B5: removed
Jul 12 18:58:28 autumnsun postfix/pipe[12080]: 97D0F5560B6: to=<myuser1@mydomain.net>, relay=dovecot, delay=0.06, delays=0.02/0/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)
Jul 12 18:58:28 autumnsun postfix/qmgr[10406]: 97D0F5560B6: removed
Jul 12 19:11:46 autumnsun postfix/master[10395]: terminating on signal 15
Jul 12 19:11:46 autumnsun postfix/master[12242]: daemon started -- version 0.5.0-rc1, configuration /etc/postfix
Jul 12 19:15:33 autumnsun postfix/smtpd[12277]: connect from localhost[127.0.0.1]
Jul 12 19:15:33 autumnsun postfix/trivial-rewrite[12281]: warning: do not list domain mydomain.net in BOTH mydestination and virtual_mailbox_domains
Jul 12 19:15:33 autumnsun postfix/smtpd[12277]: D05AD5560B5: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=myuser1@mydomain.net
Jul 12 19:15:33 autumnsun postfix/cleanup[12282]: D05AD5560B5: message-id=<347e49b2f8d7e4b9029a1beb6e80a6df@127.0.0.1>
Jul 12 19:15:33 autumnsun postfix/qmgr[12248]: D05AD5560B5: from=<myuser1@mydomain.net>, size=524, nrcpt=1 (queue active)
Jul 12 19:15:33 autumnsun roundcube: [12-Jul-2009 19:15:33 +0200]: User myuser1@mydomain.net [1.1.1.18]; Message for <myuser@gmail.com>; 250: 2.0.0 Ok: queued as D05AD5560B5
Jul 12 19:15:33 autumnsun postfix/smtpd[12277]: disconnect from localhost[127.0.0.1]
Jul 12 19:15:33 autumnsun postfix/smtpd[12285]: connect from localhost[127.0.0.1]
Jul 12 19:15:33 autumnsun postfix/trivial-rewrite[12281]: warning: do not list domain mydomain.net in BOTH mydestination and virtual_mailbox_domains
Jul 12 19:15:34 autumnsun postfix/smtpd[12285]: 003205560B6: client=localhost[127.0.0.1]
Jul 12 19:15:34 autumnsun postfix/cleanup[12282]: 003205560B6: message-id=<347e49b2f8d7e4b9029a1beb6e80a6df@127.0.0.1>
Jul 12 19:15:34 autumnsun postfix/qmgr[12248]: 003205560B6: from=<myuser1@mydomain.net>, size=1351, nrcpt=1 (queue active)
Jul 12 19:15:34 autumnsun postfix/smtpd[12285]: disconnect from localhost[127.0.0.1]
Jul 12 19:15:34 autumnsun amavis[10738]: (10738-03) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <myuser1@mydomain.net> -> <myuser@gmail.com>, Message-ID: <347e49b2f8d7e4b9029a1beb6e80a6df@127.0.0.1>, mail_id: 8jzbjZnF77ic, Hits: -, size: 524, queued_as: 003205560B6, 187 ms
Jul 12 19:15:34 autumnsun postfix/smtp[12283]: D05AD5560B5: to=<myuser@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.25, delays=0.03/0.01/0/0.2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=10738-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 003205560B6)
Jul 12 19:15:34 autumnsun postfix/qmgr[12248]: D05AD5560B5: removed
Jul 12 19:15:36 autumnsun postfix/smtp[12287]: 003205560B6: to=<myuser@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.218.18]:25, delay=2.3, delays=0.04/0.04/0.37/1.8, dsn=2.0.0, status=sent (250 2.0.0 OK 1247411767 22si4821559bwz.62)
Jul 12 19:15:36 autumnsun postfix/qmgr[12248]: 003205560B6: removed
Jul 12 19:23:25 autumnsun postfix/master[12242]: terminating on signal 15
Jul 12 19:23:25 autumnsun postfix/master[12403]: daemon started -- version 0.5.0-rc1, configuration /etc/postfix

I replaced the actual mails.. what I noticed is that I never get any information about receiving a mail. If I send on local mail user1@mydomain.net to user2@mydomain.net it doesn't show up in mail.log

4

Re: can't recieve mail

could it maybe be something wrong with the DNS?

5

Re: can't recieve mail

wazl wrote:

could it maybe be something wrong with the DNS?

you can use command test the dns setting.

C:\>nslookup
Default Server: gjjdial.bta.net.cn
Address: 202.106.195.68

> server ns.xinnet.cn
Default Server: ns.xinnet.cn
Addresses: 202.10.71.52, 123.100.7.202

> set type=txt
> 18demo.com
Server: ns.xinnet.cn
Addresses: 202.10.71.52, 123.100.7.202

18demo.com      text =

        "v=spf1 ip4:207.154.202.216 -all"

> set type=mx
> 18demo.com
Server:  vnsc-pri.sys.gtei.net
Address:  4.2.2.1

Non-authoritative answer:
18demo.com      MX preference = 20, mail exchanger = mail.18demo.com

6

Re: can't recieve mail

I was having this same issue until I fixed our DNS. We use GoDaddy.com for our DNS and it was relatively simple to set up the MX & SPF records correctly. I also had my ISP set up an rDNS (reverse DNS) to our mail server host name.

Unfortunately every DNS solution is a little different from the next so there is not one definitive answer about what proper DNS entries should look like.

7

Re: can't recieve mail

thanks everyone for the help. The problem was indeed in DNS after I've set up the MX & SPF record I got an error in mail.log.
After that I just had to fix 2 lines

myhostname was set to the name of the computer -> changed to my domain

and mynetworks was set to localhost

8

Re: can't recieve mail

wazl wrote:

thanks everyone for the help. The problem was indeed in DNS after I've set up the MX & SPF record I got an error in mail.log.
After that I just had to fix 2 lines

myhostname was set to the name of the computer -> changed to my domain

and mynetworks was set to localhost

Hi, I have the same problem, and I am a beginner and I have installed iRedMail in a fresh box (Ubuntu 9.04). I can to receive mails from my localhost but I can not to receive mails from external addresses as gmail. How can I repair that?

9

Re: can't recieve mail

Rocco wrote:

Hi, I have the same problem, and I am a beginner and I have installed iRedMail in a fresh box (Ubuntu 9.04). I can to receive mails from my localhost but I can not to receive mails from external addresses as gmail. How can I repair that?

Do you already setup correct DNS records?

10

Re: can't recieve mail

What do you guys use to test for the correct DNS setting; I am on Debian and i use

dig example.com mx

Is there a better way to check if the MX records points to the IP running irm?