Hi folks, Debian Etch Postfix Courier MySQL The mail server can send mails via telnet but unable to receive mails. All mails sent to [email protected] were rejected. $ tail /var/log/mail.log Code: Oct 16 09:16:13 xen01 postfix/smtpd[1651]: connect from web35208.mail.mud.yahoo.com[66.163.179.87] Oct 16 09:16:14 xen01 postfix/smtpd[1651]: 51DD82055B: client=web35208.mail.mud.yahoo.com[66.163.179.87] Oct 16 09:16:15 xen01 postfix/cleanup[1655]: 51DD82055B: message-id=<[email protected]> Oct 16 09:16:15 xen01 postfix/qmgr[1574]: 51DD82055B: from=<[email protected]>, size=1339, nrcpt=1 (queue active) Oct 16 09:16:15 xen01 postfix/smtp[1656]: 51DD82055B: to=<[email protected]>, 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 name=mail.satimis.com type=A: Host not found) Oct 16 09:16:15 xen01 postfix/cleanup[1655]: 358402056B: message-id=<[email protected]> Oct 16 09:16:15 xen01 postfix/qmgr[1574]: 358402056B: from=<>, size=3309, nrcpt=1 (queue active) Oct 16 09:16:15 xen01 postfix/bounce[1658]: 51DD82055B: sender non-delivery notification: 358402056B Oct 16 09:16:15 xen01 postfix/qmgr[1574]: 51DD82055B: removed Oct 16 09:16:15 xen01 postfix/smtpd[1651]: disconnect from web35208.mail.mud.yahoo.com[66.163.179.87] # hostname -f Code: xen01.satimis.com # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_domains.cf # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_transports.cf # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_forwardings.cf all without printout # postconf -n Code: 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 = xen01.satimis.com, mail.satimis.com, localhost, localhost.localdomain myhostname = xen01.satimis.com mynetworks = 127.0.0.0/8 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/mysql-virtual_transports.cf virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_create_maildirsize = yes virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_maildir_limit_message = "The user you are trying to reach is over quota." virtual_overquota_bounce = yes virtual_uid_maps = static:5000 Please help. TIA B.R. satimis
I think nothing in connection with DNS resolution. I found the trick. If the address is [email protected] the mail is rejected. # tail /var/log/mail.log Code: Oct 17 11:58:26 xen01 postfix/smtp[1717]: 8BAEA205A8: to=<[email protected]>, relay=mail.satimis.com[220.232.213.178]:25, delay=1.2, delays=1.1/0.01/0.09/0, dsn=5.4.6, status=bounced (mail for mail.satimis.com loops back to myself) Oct 17 11:58:26 xen01 postfix/cleanup[1716]: 7C32720673: message-id=<[email protected]> 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[220.232.213.178] Oct 17 11:58:26 xen01 postfix/smtpd[1712]: disconnect from web35201.mail.mud.yahoo.com[66.163.179.80] Oct 17 11:58:30 xen01 postfix/smtp[1717]: 7C32720673: host d.mx.mail.yahoo.com[66.196.82.7] refused to talk to me: 421 Message from (220.232.213.178) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html Oct 17 11:58:31 xen01 postfix/smtp[1717]: 7C32720673: to=<[email protected]>, relay=g.mx.mail.yahoo.com[209.191.88.239]: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 [email protected] it arrived. # tail /var/log/mail.log Code: 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 web35205.mail.mud.yahoo.com[66.163.179.84] Oct 17 12:00:49 xen01 postfix/smtpd[1723]: 5C9DA205A8: client=web35205.mail.mud.yahoo.com[66.163.179.84] Oct 17 12:00:50 xen01 postfix/cleanup[1726]: 5C9DA205A8: message-id=<[email protected]> Oct 17 12:00:50 xen01 postfix/qmgr[1534]: 5C9DA205A8: from=<[email protected]>, size=1349, nrcpt=1 (queue active) Oct 17 12:00:50 xen01 postfix/local[1727]: 5C9DA205A8: to=<[email protected]>, 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 web35205.mail.mud.yahoo.com[66.163.179.84] 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/main.cf Code: virtual_mailbox_base = /home/vmail Adding "satimis.com" to the line "mydestination" on /etc/postfix/main.cf can't solve the problem on address "[email protected]" # grep mydestination /etc/postfix/main.cf Code: mydestination = xen01.satimis.com, satimis.com, 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 Code: 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 = xen01.satimis.com, satimis.com, localhost, localhost.localdomain myhostname = xen01.satimis.com mynetworks = 127.0.0.0/8 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/mysql-virtual_transports.cf virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_create_maildirsize = yes virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf 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 [email protected] mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf Code: 10485760 # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf No output # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_domains.cf # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_transports.cf # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_forwardings.cf All no output # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_domains.cf # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_transports.cf # postmap -q [email protected] mysql:/etc/postfix/mysql-virtual_forwardings.cf All no output Please help. TIA I think you tested it at the time when I forward all ports to 192.168.0.202. There are 2 guests running on this Xen box. guest-1 IP - 192.168.0.201 hostname - xen01.satimis.com guest-2 IP - 192.168.0.202 hostname - xen02.satimis.com Both are mail server built for testing. Guest-2 not completed yet. I suspect encountering problem on installation. Please see my another posting. Thanks B.R. satimis
Hi marpada, I think my case is different and a little bid complicate. Some data are under mysql. Without mysql just adding; Code: virtual_mailbox_domains = satimis.com Then the problem may be solved with mails delivered to /hom/vmail/ Now in my case Code: virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf # cat /etc/postfix/mysql-virtual_domains.cf Code: user = mail_admin password = mypassword dbname = mail table = domains select_field = 'virtual' where_field = domain hosts = 127.0.0.1 I'll leave the problem unsolved for the time being. Finish building the mail server according to Falko's howto first to see what will happen there. The steps on building these 2 mail servers are quite similar. B.R. satimis