View Single Post
Old 17th October 2008, 14:50
satimis satimis is offline
Senior Member
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts

Originally Posted by marpada View Post
Check the DNS resolution of the client sending mail, because it seems is not resolving

Oct 16 09:16:15 xen01 postfix/smtp[1656]: 51DD82055B: to=<>, relay=none, delay=1.1, delays=1.1/0.01/0.05/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for type=A: Host not found)
I think nothing in connection with DNS resolution.

I found the trick. If the address is the mail is rejected.

# tail /var/log/mail.log
Oct 17 11:58:26 xen01 postfix/smtp[1717]: 8BAEA205A8: to=<>,[]:25, delay=1.2, delays=1.1/0.01/0.09/0, dsn=5.4.6, status=bounced (mail for loops back to myself)
Oct 17 11:58:26 xen01 postfix/cleanup[1716]: 7C32720673: message-id=<>
Oct 17 11:58:26 xen01 postfix/qmgr[1534]: 7C32720673: from=<>, size=3195, nrcpt=1 (queue active)
Oct 17 11:58:26 xen01 postfix/bounce[1720]: 8BAEA205A8: sender non-delivery notification: 7C32720673
Oct 17 11:58:26 xen01 postfix/qmgr[1534]: 8BAEA205A8: removed
Oct 17 11:58:26 xen01 postfix/smtpd[1718]: disconnect from unknown[]
Oct 17 11:58:26 xen01 postfix/smtpd[1712]: disconnect from[]
Oct 17 11:58:30 xen01 postfix/smtp[1717]: 7C32720673: host[] refused to talk to me: 421 Message from ( temporarily deferred - 4.16.50. Please refer to
Oct 17 11:58:31 xen01 postfix/smtp[1717]: 7C32720673: to=<>,[]:25, delay=5.5, delays=0/0/4.6/0.89, dsn=2.0.0, status=sent (250 ok dirdel)
Oct 17 11:58:31 xen01 postfix/qmgr[1534]: 7C32720673: removed

If addressing the mail to it arrived.

# tail /var/log/mail.log
Oct 17 12:00:48 xen01 postfix/smtpd[1723]: warning: TLS library problem: 1723:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:354:
Oct 17 12:00:48 xen01 postfix/smtpd[1723]: warning: TLS library problem: 1723:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:720:
Oct 17 12:00:48 xen01 postfix/smtpd[1723]: cannot load RSA certificate and key data
Oct 17 12:00:48 xen01 postfix/smtpd[1723]: connect from[]
Oct 17 12:00:49 xen01 postfix/smtpd[1723]: 5C9DA205A8:[]
Oct 17 12:00:50 xen01 postfix/cleanup[1726]: 5C9DA205A8: message-id=<>
Oct 17 12:00:50 xen01 postfix/qmgr[1534]: 5C9DA205A8: from=<>, size=1349, nrcpt=1 (queue active)
Oct 17 12:00:50 xen01 postfix/local[1727]: 5C9DA205A8: to=<>, relay=local, delay=1.1, delays=1.1/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 17 12:00:50 xen01 postfix/qmgr[1534]: 5C9DA205A8: removed
Oct 17 12:00:50 xen01 postfix/smtpd[1723]: disconnect from[]

The mails were delivered to /var/mail/satimis file. Mails will be added on the file. But not delivered to /home/vmail

# grep /home/vmail /etc/postfix/
virtual_mailbox_base = /home/vmail

Adding "" to the line "mydestination" on /etc/postfix/ can't solve the problem on address ""

# grep mydestination /etc/postfix/
mydestination =,, localhost, localhost.localdomain
proxy_read_maps = $local_recipient_maps $mydestination 

$virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps

# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
mydestination =,, localhost, localhost.localdomain
myhostname =
mynetworks =
myorigin = /etc/mailname
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
virtual_create_maildirsize = yes
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = proxy:mysql:/etc/postfix/
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
virtual_uid_maps = static:5000

# postmap -q mysql:/etc/postfix/

# postmap -q mysql:/etc/postfix/

No output

# postmap -q mysql:/etc/postfix/
# postmap -q mysql:/etc/postfix/
# postmap -q mysql:/etc/postfix/

All no output

# postmap -q mysql:/etc/postfix/
# postmap -q mysql:/etc/postfix/
# postmap -q mysql:/etc/postfix/

All no output

Please help. TIA

From here I see your zone is ok, but I can't telnet to port 25 of, so I think you should open the port in your router/fw if you want receive mail from the internet.
I think you tested it at the time when I forward all ports to

There are 2 guests running on this Xen box.

IP -
hostname -

IP -
hostname -

Both are mail server built for testing. Guest-2 not completed yet. I suspect encountering problem on installation. Please see my another posting.


Reply With Quote