1

Topic: cannot send an email outside my server

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
hi it's my first time to use iredmail and i just followed the instruction but when i try to send an email to my gmail account and yahoo account i got these from the log

Sep  1 13:04:29 demo postfix/smtp[2469]: 64FB745F3E: to=<angelossamsung@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=67, delays=13/0.25/10/43, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0AEB545F3F)
Sep  1 13:04:29 demo postfix/qmgr[1753]: 64FB745F3E: removed
Sep  1 13:04:47 demo postfix/smtp[2484]: 0AEB545F3F: to=<angelossamsung@gmail.com>, relay=none, delay=22, delays=0.67/0.7/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Sep  1 13:05:44 demo postfix/qmgr[1753]: 9BBD545F3D: from=<dictm@mail.iredmail.org>, size=1658, nrcpt=1 (queue active)
Sep  1 13:06:04 demo postfix/smtp[2484]: 9BBD545F3D: to=<angelossamsung@gmail.com>, relay=none, delay=866, delays=846/0.08/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Sep  1 13:10:44 demo postfix/qmgr[1753]: 0AEB545F3F: from=<dictm@mail.iredmail.org>, size=1818, nrcpt=1 (queue active)
Sep  1 13:11:04 demo postfix/smtp[2517]: 0AEB545F3F: to=<angelossamsung@gmail.com>, relay=none, delay=399, delays=378/0.31/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Sep  1 13:14:45 demo postfix/smtpd[2676]: connect from ip6-localhost[127.0.0.1]
Sep  1 13:15:00 demo postfix/smtpd[2676]: 10EB945F29: client=ip6-localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=test@mail.iredmail.org
Sep  1 13:15:01 demo postfix/cleanup[2681]: 10EB945F29: message-id=<932a3210c11a8723494986702caa0c7d@mail.iredmail.org>
Sep  1 13:15:01 demo roundcube: User test@mail.iredmail.org [127.0.0.1]; Message for angelokyre11@yahoo.com; 250: 2.0.0 Ok: queued as 10EB945F29
Sep  1 13:15:01 demo postfix/qmgr[1753]: 10EB945F29: from=<test@mail.iredmail.org>, size=570, nrcpt=1 (queue active)
Sep  1 13:15:03 demo postfix/smtpd[2676]: disconnect from ip6-localhost[127.0.0.1]
Sep  1 13:15:44 demo postfix/qmgr[1753]: 8CC9745F37: from=<dictm@mail.iredmail.org>, size=1504, nrcpt=1 (queue active)
Sep  1 13:15:53 demo postfix/smtpd[2695]: connect from ip6-localhost[127.0.0.1]
Sep  1 13:15:53 demo postfix/smtpd[2695]: 5E60345F40: client=ip6-localhost[127.0.0.1]
Sep  1 13:15:53 demo postfix/cleanup[2681]: 5E60345F40: message-id=<932a3210c11a8723494986702caa0c7d@mail.iredmail.org>
Sep  1 13:15:53 demo postfix/qmgr[1753]: 5E60345F40: from=<test@mail.iredmail.org>, size=1515, nrcpt=1 (queue active)
Sep  1 13:15:53 demo postfix/smtpd[2695]: disconnect from ip6-localhost[127.0.0.1]
Sep  1 13:15:53 demo amavis[1487]: (01487-01) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <test@mail.iredmail.org> -> <angelokyre11@yahoo.com>, Message-ID: <932a3210c11a8723494986702caa0c7d@mail.iredmail.org>, mail_id: 9rqe2oCf3ThZ, Hits: -10, size: 570, queued_as: 5E60345F40, 46806 ms
Sep  1 13:15:54 demo postfix/smtp[2682]: 10EB945F29: to=<angelokyre11@yahoo.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=68, delays=16/0.16/21/32, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5E60345F40)
Sep  1 13:15:54 demo postfix/qmgr[1753]: 10EB945F29: removed
Sep  1 13:16:04 demo postfix/smtp[2693]: 8CC9745F37: to=<angelossamsung@gmail.com>, relay=none, delay=2198, delays=2177/0.22/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Sep  1 13:16:13 demo postfix/smtp[2696]: 5E60345F40: to=<angelokyre11@yahoo.com>, relay=none, delay=21, delays=0.17/0.18/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=yahoo.com type=MX: Host not found, try again)
Sep  1 13:20:44 demo postfix/qmgr[1753]: 0AEB545F3F: from=<dictm@mail.iredmail.org>, size=1818, nrcpt=1 (queue active)
Sep  1 13:20:44 demo postfix/qmgr[1753]: 9BBD545F3D: from=<dictm@mail.iredmail.org>, size=1658, nrcpt=1 (queue active)
Sep  1 13:21:04 demo postfix/smtp[2732]: 0AEB545F3F: to=<angelossamsung@gmail.com>, relay=none, delay=999, delays=978/0.54/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Sep  1 13:21:04 demo postfix/smtp[2733]: 9BBD545F3D: to=<angelossamsung@gmail.com>, relay=none, delay=1766, delays=1746/0.11/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Sep  1 13:25:44 demo postfix/qmgr[1753]: 5E60345F40: from=<test@mail.iredmail.org>, size=1515, nrcpt=1 (queue active)
Sep  1 13:26:04 demo postfix/smtp[2750]: 5E60345F40: to=<angelokyre11@yahoo.com>, relay=none, delay=611, delays=591/0.45/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=yahoo.com type=MX: Host not found, try again)

can someone help me i am trying it out before actually using it on a production server

----

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

2

Re: cannot send an email outside my server

Do you have correct DNS server(s) in /etc/resolv.conf and /var/spool/postfix/etc/resolv.conf?