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

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

Oct 16 09:16:15 xen01 postfix/smtp[1656]: 51DD82055B: to=<satimis@satimis.com>, 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)
I think nothing in connection with DNS resolution.


I found the trick. If the address is satimis@satimis.com the mail is rejected.


# tail /var/log/mail.log
Code:
Oct 17 11:58:26 xen01 postfix/smtp[1717]: 8BAEA205A8: to=<satimis@satimis.com>, 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=<20081017115826.7C32720673@xen01.satimis.com>
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=<satimis@yahoo.com>, 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 satimis@xen01.satimis.com 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=<2883.96248.qm@web35205.mail.mud.yahoo.com>
Oct 17 12:00:50 xen01 postfix/qmgr[1534]: 5C9DA205A8: from=<satimis@yahoo.com>, size=1349, nrcpt=1 (queue active)
Oct 17 12:00:50 xen01 postfix/local[1727]: 5C9DA205A8: to=<satimis@xen01.satimis.com>, 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 "satimis@satimis.com"


# 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 satimis@satimis.com mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
Code:
10485760

# postmap -q satimis@xen01.satimis.com mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf

No output


# postmap -q satimis@satimis.com mysql:/etc/postfix/mysql-virtual_domains.cf
# postmap -q satimis@satimis.com mysql:/etc/postfix/mysql-virtual_transports.cf
# postmap -q satimis@satimis.com mysql:/etc/postfix/mysql-virtual_forwardings.cf

All no output


# postmap -q satimis@xen01.satimis.com mysql:/etc/postfix/mysql-virtual_domains.cf
# postmap -q satimis@xen01.satimis.com mysql:/etc/postfix/mysql-virtual_transports.cf
# postmap -q satimis@xen01.satimis.com mysql:/etc/postfix/mysql-virtual_forwardings.cf


All no output


Please help. TIA


Quote:
From here I see your zone is ok, but I can't telnet to port 25 of mail.satimis.com, 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 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
Reply With Quote