1

Topic: Couldn't receive mail from outside

Hi all,

I have installed iRedMail on my Ubuntu 10.04 server, everything seems working except I cannot receive emails from outside (can receive and send emails within same domain mail boxes), I can send email to yahoo, gmail, or any email server but I cannot receive emails from them. I tried so many things without luck. Could someone please help me on this?

This is an example return by Gmail:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 451 451 4.3.5 Server configuration problem (state 14).

Some other infos:
MYSQL 5.1.41-3ubuntu12.6-log
PHP Version 5.3.2-1ubuntu4.2 (cgi-fcgi)

postconf -n:

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
inet_protocols = ipv4
mail_name = iRedMail
mail_version = 0.6.1
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 15728640
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = d4net.org
myhostname = deneb.d4net.org
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = deneb.d4net.org
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql_recipient_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql_recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql_relay_domains.cf
relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
relayhost =
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql_sender_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql_transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql_transport_maps_domain.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql_domain_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = dovecot
virtual_uid_maps = static:5000

Thanks,
Giovanni

----

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

2

Re: Couldn't receive mail from outside

please post your postfix logs in /var/log/maillog

3

Re: Couldn't receive mail from outside

Ok, the mail logs are all empty..
They're owned by root:root.
Might I change user and group to syslog:adm?

4

Re: Couldn't receive mail from outside

There must be something wrong with mail related components according to this error message:

The error that the other server returned was: 451 451 4.3.5 Server configuration problem (state 14).

So you have to check postfix log first. On Ubuntu, it's /var/log/mail.log.

5

Re: Couldn't receive mail from outside

Ok, but, as I said, all the logs (mail.log, mail.info, mail.err, mail.warn) are empty.

But, investigating, if I look into syslog.log I see a lot of:
Sep 27 03:12:06 deneb postfix/local[20762]: 498BB1EE2D27: to=<asdasd@mydomain>, relay=local, delay=905, delays=905/0.03/0/0, dsn=4.3.0, status=deferred (temporary failure. Command output: Failed to write to log file)

So, i think that the problem is permissions to log files.
And the question is: which own user and group mail log file must have? root? syslog? postfix?

6

Re: Couldn't receive mail from outside

try to restart syslog service first, and then restart postfix service. it should work

7

Re: Couldn't receive mail from outside

Ok, solved the log problem.

Anyway, I can't see anything related the messages I'm trying to send trough gmail..

8 (edited by DarkJ 2010-09-28 21:03:48)

Re: Couldn't receive mail from outside

I also see a lot of these in mail.err:

Sep 28 14:52:46 postfix/trivial-rewrite[28776]: fatal: proxy:mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf(0,lock|fold_fix): table lookup problem

But /etc/postfix/mysql_virtual_mailbox_domains.cf seems ok:
user        = vmail
password    = *****
hosts       = 127.0.0.1
port        = 3306
dbname      = vmail
query       = SELECT domain FROM domain WHERE domain='%s' AND backupmx='0' AND active='1'

9 (edited by liemoffline 2010-10-04 16:46:21)

Re: Couldn't receive mail from outside

I installed iRedmail 0.6.1 on Ubuntu 10.0.4.1 lTS. Send and receive in local fine but it only can send to outside (except gmail) but cannot receive mail form outside. If I use difference domain send to my iRedMail server I got the message : 550 5.1.1 <user@example.com>: Recipient address rejected: User unknown in virtual alias table
I google for this error but i cannot solve this problem until now!
  Please help ! I'm in Vietnam . Setup email server for my company .
* Cannot send to gmail(<user@gmail.com>: host gmail-smtp-in.l.google.com[74.125.155.27] said:
    550-5.7.1 [113.115.216.189] The IP you're using to send mail is not
    authorized 550-5.7.1 to send email directly to our servers. Please use the
    SMTP relay at 550-5.7.1 your service provider instead. Learn more at
    550 5.7.1 http://mail.google.com/support/bin/answ … swer=10336
    y11si18905470qco.85 (in reply to end of DATA command)
)
* Cannot receive any external email (550 5.1.1 <user@example.com>: Recipient address rejected: User unknown in virtual alias table)
What is my error!
I'm using dns-diy.net and adding MX record mail.mydomain.com., A record point to external myip. Is it right?
I already NAT port on router 25,110,143,443 poit to my iredmail server, telnet externalip 25 ok!

10

Re: Couldn't receive mail from outside

you can sent a email from gmail and monitor the log

tail -0f /var/log/maillog

11 (edited by liemoffline 2010-10-05 09:31:08)

Re: Couldn't receive mail from outside

When I send mail from gmail to my mail server I got the following message: Delivery to the following recipient failed permanently:

user@example.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 5.1.1 <user@example.com>: Recipient address rejected: User unknown in virtual mailbox table (state 14).
And when and type this command :
tail -0f /var/log/maillog
I got the error : no file remaining . I'm using iredmail 0.6.1 on Ubuntu server 10.04.1 LTS amd64 , MySQL backend(fresh install)
When I use this command:
C:\telnet mail.mydomain.com 25
220 mail.mydomain.com ESMTP iRedMail (Ubuntu)
EHLO mail.mydomain.com
250-mail.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
What is my problem? Please help!
My cron log:
/etc/cron.daily/logrotate:
error: rsyslog:13 duplicate log entry for /var/log/mail.info
error: found error in /var/log/mail.info
/var/log/mail.warn
/var/log/mail.err

/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
, skipping
run-parts: /etc/cron.daily/postfix-policyd exited with return code 255

12

Re: Couldn't receive mail from outside

sorry, it is mail.og

#tail -0f /var/log/mail.log

13 (edited by liemoffline 2010-10-05 16:34:54)

Re: Couldn't receive mail from outside

shake wrote:

sorry, it is mail.og

#tail -0f /var/log/mail.log

It is quite empty.
I re-install fresh ubuntu server 10.04.1 lTS amd64 nad iredmail 0.6.1- using LDAP backend again but my problem also like this:
It can send to Yahoo mail but cannot send to gmail
This is the mail system at host mail.mydomain.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<user@gmail.com>: host gmail-smtp-in.l.google.com[74.125.155.86] said:
    550-5.7.1 [114.163.216.222] The IP you're using to send mail is not
    authorized 550-5.7.1 to send email directly to our servers. Please use the
    SMTP relay at 550-5.7.1 your service provider instead. Learn more at
    550 5.7.1 http://mail.google.com/support/bin/answ … swer=10336
    x8si12991807wfd.4 (in reply to end of DATA command)
  Send and reiceive to same mydomain is OK, but it cannot send to gmail, and receive any external domain! Pls show me how to do?
This is my /var/log/mail.log

Oct  5 13:20:16 mail postfix/qmgr[1347]: 959C7100C29: removed
Oct  5 13:23:04 mail postfix/anvil[1701]: statistics: max connection rate 1/60s for (smtp:98.138.91.58) at Oct  5 13:19:41
Oct  5 13:23:04 mail postfix/anvil[1701]: statistics: max connection count 1 for (smtp:98.138.91.58) at Oct  5 13:19:41
Oct  5 13:23:04 mail postfix/anvil[1701]: statistics: max cache size 1 at Oct  5 13:19:41
Oct  5 13:26:54 mail postfix/smtpd[1750]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 13:26:54 mail postfix/smtpd[1750]: connect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]
Oct  5 13:26:55 mail postfix/smtpd[1750]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:26:55 mail postfix/smtpd[1750]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:26:56 mail postfix/smtpd[1750]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:26:56 mail postfix/smtpd[1750]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:26:56 mail postfix/smtpd[1750]: NOQUEUE: reject: RCPT from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]: 451 4.3.5 Server configuration problem; from=<user02@yahoo.com> to=<www@mydomain.com> proto=SMTP helo=<nm17-vm0.bullet.mail.ne1.yahoo.com>
Oct  5 13:26:57 mail postfix/smtpd[1750]: disconnect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]
Oct  5 13:30:17 mail postfix/anvil[1753]: statistics: max connection rate 1/60s for (smtp:98.138.91.58) at Oct  5 13:26:54
Oct  5 13:30:17 mail postfix/anvil[1753]: statistics: max connection count 1 for (smtp:98.138.91.58) at Oct  5 13:26:54
Oct  5 13:30:17 mail postfix/anvil[1753]: statistics: max cache size 1 at Oct  5 13:26:54
Oct  5 13:41:00 mail postfix/smtpd[1793]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 13:41:00 mail postfix/smtpd[1793]: connect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]
Oct  5 13:41:01 mail postfix/smtpd[1793]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:41:01 mail postfix/smtpd[1793]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:41:02 mail postfix/smtpd[1793]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:41:02 mail postfix/smtpd[1793]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:41:02 mail postfix/smtpd[1793]: NOQUEUE: reject: RCPT from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]: 451 4.3.5 Server configuration problem; from=<user02@yahoo.com> to=<www@mydomain.com> proto=SMTP helo=<nm17-vm0.bullet.mail.ne1.yahoo.com>
Oct  5 13:41:03 mail postfix/smtpd[1793]: disconnect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]
Oct  5 13:41:27 mail postfix/smtpd[1793]: connect from mail-iw0-f175.google.com[209.85.214.175]
Oct  5 13:41:28 mail postfix/smtpd[1793]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:41:28 mail postfix/smtpd[1793]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:41:29 mail postfix/smtpd[1793]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:41:29 mail postfix/smtpd[1793]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:41:29 mail postfix/smtpd[1793]: NOQUEUE: reject: RCPT from mail-iw0-f175.google.com[209.85.214.175]: 451 4.3.5 Server configuration problem; from=<user02@gmail.com> to=<www@mydomain.com> proto=ESMTP helo=<mail-iw0-f175.google.com>
Oct  5 13:41:29 mail postfix/smtpd[1793]: disconnect from mail-iw0-f175.google.com[209.85.214.175]
Oct  5 13:44:49 mail postfix/anvil[1795]: statistics: max connection rate 1/60s for (smtp:98.138.91.58) at Oct  5 13:41:00
Oct  5 13:44:49 mail postfix/anvil[1795]: statistics: max connection count 1 for (smtp:98.138.91.58) at Oct  5 13:41:00
Oct  5 13:44:49 mail postfix/anvil[1795]: statistics: max cache size 2 at Oct  5 13:41:27
Oct  5 13:49:46 mail postfix/smtpd[1823]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 13:49:46 mail postfix/smtpd[1823]: connect from mail-gw0-f47.google.com[74.125.83.47]
Oct  5 13:49:47 mail postfix/smtpd[1823]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:49:47 mail postfix/smtpd[1823]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:49:48 mail postfix/smtpd[1823]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 13:49:48 mail postfix/smtpd[1823]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 13:49:48 mail postfix/smtpd[1823]: NOQUEUE: reject: RCPT from mail-gw0-f47.google.com[74.125.83.47]: 451 4.3.5 Server configuration problem; from=<user02@gmail.com> to=<www@mydomain.com> proto=ESMTP helo=<mail-gw0-f47.google.com>
Oct  5 13:49:48 mail postfix/smtpd[1823]: disconnect from mail-gw0-f47.google.com[74.125.83.47]
Oct  5 13:50:44 mail postfix/smtpd[1823]: warning: 113.163.216.158: hostname dynamic.vdc.vn verification failed: Name or service not known
Oct  5 13:50:44 mail postfix/smtpd[1823]: connect from unknown[113.163.216.158]
Oct  5 13:50:44 mail postfix/smtpd[1823]: D461D10169E: client=unknown[113.163.216.158], sasl_method=LOGIN, sasl_username=mylinh@mydomain.com
Oct  5 13:50:44 mail postfix/cleanup[1833]: D461D10169E: message-id=<9740FB5C6FDB4D51A19CEC2AA9C6801E@LILI>
Oct  5 13:50:44 mail postfix/qmgr[1347]: D461D10169E: from=<mylinh@mydomain.com>, size=1362, nrcpt=1 (queue active)
Oct  5 13:50:44 mail postfix/smtpd[1823]: disconnect from unknown[113.163.216.158]
Oct  5 13:50:59 mail postfix/smtpd[1839]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 13:50:59 mail postfix/smtpd[1839]: connect from localhost[127.0.0.1]
Oct  5 13:50:59 mail postfix/smtpd[1839]: 8B71C1016A2: client=localhost[127.0.0.1]
Oct  5 13:50:59 mail postfix/cleanup[1833]: 8B71C1016A2: message-id=<9740FB5C6FDB4D51A19CEC2AA9C6801E@LILI>
Oct  5 13:50:59 mail postfix/qmgr[1347]: 8B71C1016A2: from=<mylinh@mydomain.com>, size=1814, nrcpt=1 (queue active)
Oct  5 13:50:59 mail postfix/smtpd[1839]: disconnect from localhost[127.0.0.1]
Oct  5 13:50:59 mail amavis[887]: (00887-03) Passed CLEAN, LOCAL [113.163.216.158] [113.163.216.158] <mylinh@mydomain.com> -> <www@mydomain.com>, Message-ID: <9740FB5C6FDB4D51A19CEC2AA9C6801E@LILI>, mail_id: fBOqNp-TP6xq, Hits: -8.786, size: 1362, queued_as: 8B71C1016A2, 14662 ms
Oct  5 13:50:59 mail postfix/smtp[1834]: D461D10169E: to=<www@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=15, delays=0.11/0.01/0/15, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=00887-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8B71C1016A2)
Oct  5 13:50:59 mail postfix/qmgr[1347]: D461D10169E: removed
Oct  5 13:50:59 mail postfix/pipe[1840]: 8B71C1016A2: to=<www@mydomain.com>, relay=dovecot, delay=0.16, delays=0.06/0.01/0/0.09, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct  5 13:50:59 mail postfix/qmgr[1347]: 8B71C1016A2: removed
Oct  5 13:51:44 mail postfix/smtpd[1823]: connect from localhost[127.0.0.1]
Oct  5 13:51:44 mail postfix/smtpd[1823]: 98D5610169E: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=www@mydomain.com
Oct  5 13:51:44 mail postfix/cleanup[1833]: 98D5610169E: message-id=<8637d074002dbec442c52568f21962c5@127.0.0.1>
Oct  5 13:51:44 mail postfix/qmgr[1347]: 98D5610169E: from=<www@mydomain.com>, size=747, nrcpt=1 (queue active)
Oct  5 13:51:44 mail roundcube: [05-Oct-2010 13:51:44 +0700]: User www@mydomain.com [113.163.216.158]; Message for My Linh <mylinh@mydomain.com>; 250: 2.0.0 Ok: queued as 98D5610169E
Oct  5 13:51:44 mail postfix/smtpd[1823]: disconnect from localhost[127.0.0.1]
Oct  5 13:52:00 mail postfix/smtpd[1839]: connect from localhost[127.0.0.1]
Oct  5 13:52:00 mail postfix/smtpd[1839]: 106E61016A9: client=localhost[127.0.0.1]
Oct  5 13:52:00 mail postfix/cleanup[1833]: 106E61016A9: message-id=<8637d074002dbec442c52568f21962c5@127.0.0.1>
Oct  5 13:52:00 mail postfix/smtpd[1839]: disconnect from localhost[127.0.0.1]
Oct  5 13:52:00 mail postfix/qmgr[1347]: 106E61016A9: from=<www@mydomain.com>, size=1205, nrcpt=1 (queue active)
Oct  5 13:52:00 mail amavis[888]: (00888-03) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <www@mydomain.com> -> <mylinh@mydomain.com>, Message-ID: <8637d074002dbec442c52568f21962c5@127.0.0.1>, mail_id: 8HVpn5odKpWr, Hits: -10, size: 747, queued_as: 106E61016A9, 15451 ms
Oct  5 13:52:00 mail postfix/smtp[1834]: 98D5610169E: to=<mylinh@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=16, delays=0.06/0/0/15, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=00888-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 106E61016A9)
Oct  5 13:52:00 mail postfix/qmgr[1347]: 98D5610169E: removed
Oct  5 13:52:00 mail postfix/pipe[1840]: 106E61016A9: to=<mylinh@mydomain.com>, relay=dovecot, delay=0.19, delays=0.05/0/0/0.13, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct  5 13:52:00 mail postfix/qmgr[1347]: 106E61016A9: removed
Oct  5 13:55:04 mail postfix/anvil[1826]: statistics: max connection rate 1/60s for (smtp:74.125.83.47) at Oct  5 13:49:46
Oct  5 13:55:04 mail postfix/anvil[1826]: statistics: max connection count 1 for (smtp:74.125.83.47) at Oct  5 13:49:46
Oct  5 13:55:04 mail postfix/anvil[1826]: statistics: max cache size 2 at Oct  5 13:50:44
Oct  5 14:07:49 mail postfix/smtpd[1934]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 14:07:49 mail postfix/smtpd[1934]: connect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]
Oct  5 14:07:51 mail postfix/smtpd[1934]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 14:07:51 mail postfix/smtpd[1934]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 14:07:52 mail postfix/smtpd[1934]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 14:07:52 mail postfix/smtpd[1934]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 14:07:52 mail postfix/smtpd[1934]: NOQUEUE: reject: RCPT from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]: 451 4.3.5 Server configuration problem; from=<user02@yahoo.com> to=<www@mydomain.com> proto=SMTP helo=<nm17-vm0.bullet.mail.ne1.yahoo.com>
Oct  5 14:07:53 mail postfix/smtpd[1934]: disconnect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]
Oct  5 14:10:19 mail postfix/smtpd[1956]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 14:10:19 mail postfix/smtpd[1956]: connect from mail-iw0-f175.google.com[209.85.214.175]
Oct  5 14:10:20 mail postfix/smtpd[1956]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 14:10:20 mail postfix/smtpd[1956]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 14:10:21 mail postfix/smtpd[1956]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 14:10:21 mail postfix/smtpd[1956]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 14:10:21 mail postfix/smtpd[1956]: NOQUEUE: reject: RCPT from mail-iw0-f175.google.com[209.85.214.175]: 451 4.3.5 Server configuration problem; from=<user02@gmail.com> to=<www@mydomain.com> proto=ESMTP helo=<mail-iw0-f175.google.com>
Oct  5 14:10:21 mail postfix/smtpd[1956]: disconnect from mail-iw0-f175.google.com[209.85.214.175]
Oct  5 14:13:41 mail postfix/anvil[1937]: statistics: max connection rate 1/60s for (smtp:98.138.91.58) at Oct  5 14:07:49
Oct  5 14:13:41 mail postfix/anvil[1937]: statistics: max connection count 1 for (smtp:98.138.91.58) at Oct  5 14:07:49
Oct  5 14:13:41 mail postfix/anvil[1937]: statistics: max cache size 1 at Oct  5 14:07:49
Oct  5 14:17:16 mail postfix/smtpd[1990]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 14:17:16 mail postfix/smtpd[1990]: connect from localhost[127.0.0.1]
Oct  5 14:17:18 mail postfix/smtpd[1990]: 4BC2410169E: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=www@mydomain.com
Oct  5 14:17:18 mail postfix/cleanup[1994]: 4BC2410169E: message-id=<a4aa5a42997631a9ac41ac6c3a2d4bd3@127.0.0.1>
Oct  5 14:17:18 mail postfix/qmgr[1347]: 4BC2410169E: from=<www@mydomain.com>, size=753, nrcpt=1 (queue active)
Oct  5 14:17:18 mail roundcube: [05-Oct-2010 14:17:18 +0700]: User www@mydomain.com [113.163.216.158]; Message for <zhb@iredmail.org>; 250: 2.0.0 Ok: queued as 4BC2410169E
Oct  5 14:17:18 mail postfix/smtpd[1990]: disconnect from localhost[127.0.0.1]
Oct  5 14:17:38 mail postfix/smtpd[2009]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 14:17:38 mail postfix/smtpd[2009]: connect from localhost[127.0.0.1]
Oct  5 14:17:38 mail postfix/smtpd[2009]: D4C7B1016A9: client=localhost[127.0.0.1]
Oct  5 14:17:38 mail postfix/cleanup[1994]: D4C7B1016A9: message-id=<a4aa5a42997631a9ac41ac6c3a2d4bd3@127.0.0.1>
Oct  5 14:17:38 mail postfix/smtpd[2009]: disconnect from localhost[127.0.0.1]
Oct  5 14:17:38 mail postfix/qmgr[1347]: D4C7B1016A9: from=<www@mydomain.com>, size=1203, nrcpt=1 (queue active)
Oct  5 14:17:38 mail amavis[887]: (00887-04) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <www@mydomain.com> -> <zhb@iredmail.org>, Message-ID: <a4aa5a42997631a9ac41ac6c3a2d4bd3@127.0.0.1>, mail_id: NmHAUwp4Trfi, Hits: -10, size: 753, queued_as: D4C7B1016A9, 20521 ms
Oct  5 14:17:38 mail postfix/smtp[1995]: 4BC2410169E: to=<zhb@iredmail.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=22, delays=1.9/0.01/0/21, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=00887-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as D4C7B1016A9)
Oct  5 14:17:38 mail postfix/qmgr[1347]: 4BC2410169E: removed
Oct  5 14:17:44 mail postfix/smtp[2010]: D4C7B1016A9: to=<zhb@iredmail.org>, relay=aspmx.l.google.com[74.125.127.27]:25, delay=5.2, delays=0.04/0.01/2.1/3, dsn=2.0.0, status=sent (250 2.0.0 OK 1286263063 nb14si10935942qcb.64)
Oct  5 14:17:44 mail postfix/qmgr[1347]: D4C7B1016A9: removed
Oct  5 14:38:49 mail postfix/smtpd[2092]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 14:38:49 mail postfix/smtpd[2092]: connect from mail-yw0-f47.google.com[209.85.213.47]
Oct  5 14:38:50 mail postfix/smtpd[2092]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 14:38:50 mail postfix/smtpd[2092]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 14:38:51 mail postfix/smtpd[2092]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 14:38:51 mail postfix/smtpd[2092]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 14:38:51 mail postfix/smtpd[2092]: NOQUEUE: reject: RCPT from mail-yw0-f47.google.com[209.85.213.47]: 451 4.3.5 Server configuration problem; from=<user02@gmail.com> to=<www@mydomain.com> proto=ESMTP helo=<mail-yw0-f47.google.com>
Oct  5 14:38:52 mail postfix/smtpd[2092]: disconnect from mail-yw0-f47.google.com[209.85.213.47]
Oct  5 14:42:12 mail postfix/anvil[2095]: statistics: max connection rate 1/60s for (smtp:209.85.213.47) at Oct  5 14:38:49
Oct  5 14:42:12 mail postfix/anvil[2095]: statistics: max connection count 1 for (smtp:209.85.213.47) at Oct  5 14:38:49
Oct  5 14:42:12 mail postfix/anvil[2095]: statistics: max cache size 1 at Oct  5 14:38:49
Oct  5 15:02:11 mail postfix/smtpd[2259]: warning: when SASL type is "dovecot", SASL path "dovecot-auth" should be a socket pathname
Oct  5 15:02:11 mail postfix/smtpd[2259]: connect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]
Oct  5 15:02:13 mail postfix/smtpd[2259]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 15:02:13 mail postfix/smtpd[2259]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Oct  5 15:02:14 mail postfix/smtpd[2259]: warning: connect to 127.0.0.1:10031: Connection refused
Oct  5 15:02:14 mail postfix/smtpd[2259]: warning: problem talking to server 127.0.0.1:10031: Connection refused<--- what's error?
Oct  5 15:02:14 mail postfix/smtpd[2259]: NOQUEUE: reject: RCPT from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]: 451 4.3.5 Server configuration problem; from=<user02@yahoo.com> to=<www@mydomain.com> proto=SMTP helo=<nm17-vm0.bullet.mail.ne1.yahoo.com>
Oct  5 15:02:14 mail postfix/smtpd[2259]: disconnect from nm17-vm0.bullet.mail.ne1.yahoo.com[98.138.91.58]

Urgent! Need help, I'm buiding email server for company ! Thanks everybody!

14

Re: Couldn't receive mail from outside

Yahoo says your ip address is listed in Spamhaus blacklist, please follow the link in returned message for more detail.

Read log file carefully first.

15 (edited by liemoffline 2010-10-06 15:59:50)

Re: Couldn't receive mail from outside

Finally! Successfully setup iRedMail 0.6.1 on Ubuntu 10.0.4.1 LTS amd64 with send and receive any mail!
Sorry for my rude!
Fucking the main.cf with the following line:
smtpd_recipient_restrictions = ........
I changed it to :(for a long time google and continuous fucking)
smtpd_recipient_restrictions =  permit_mynetworks,  permit_sasl_authenticated, reject_unauth_destination
Hope this help for other people !
Thank you everybody and Mr ZhangHuangbin! Hope you review the main.cf. It make the server cannot reiceive any mail from outside!

16

Re: Couldn't receive mail from outside

change
smtp_rejtect_unlisted_sender = no   
inside main.cf
this is work for me : )

17

Re: Couldn't receive mail from outside

after change this smtp to smtp_reject_unlisted_sender = no and try from serveral domain  postfix accept some but not all ,then try with reply of liemoffline this work  as well , thanks  you liemoffline