This is a discussion on Can't receive mail to an internal mail server within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi to all, Before I had this structure: WEB===INTERNET===>FW===>LAN FW was also a mail server ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi to all,
Before I had this structure: WEB===INTERNET===>FW===>LAN FW was also a mail server and receive the email of all users. Just two user receive correctly the email into their Maildir into WEB. WEB is a Web Server and also a DNS server and receive just two account email. Now i'm in trouble...I've make a new LAN structure like this: WEB===INTERNET ===> FW ===>LAN LAN have an internal machine (10.10.10.x) that will be a new mail server that I would like to receive any mail of the existing account. At the moment everything works fine FROM and TO any email address if I work directly INTO a new mail server but If I trying to move an existing account (just for test) into a new mail server it doesn't receive any email. That's the result of postconf -n into FW: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all mail_owner = postfix mail_spool_directory = /var/spool/mail mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 20480000 mydestination = $myhostname, localhost.$mydomain, /etc/postfix/domain mydomain = MYDOMAIN myhostname = MYHOSTNAME mynetworks = 127.0.0.0/8, 10.10.10.0/24 mynetworks_style = subnet myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES relay_domains = $mydestination, /etc/postfix/domain sample_directory = /usr/share/doc/postfix-2.2.2/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_client_restrictions = reject_non_fqdn_sender smtpd_sender_restrictions = hash:/etc/postfix/access unknown_local_recipient_reject_code = 550 For privacy I have just modified: MYDOMAIN MYHOSTNAME When the email address (into WEB) works fine I have this result from maillog: Feb 25 18:09:33 FW amavis[12540]: (12540-05) Passed CLEAN, [FW] <FROM> -> <MAIL@WEB>, Message-ID: <011301c877d1$2d95a070$88c0e150$@it>, mail_id: kEtVAJMPycCF, Hits: -2.596, 6703 ms Feb 25 18:09:33 FW postfix/smtp[12528]: 08207414009: to=<MAIL@WEB>, orig_to=<MAIL@DOMAIN>, relay=127.0.0.1[127.0.0.1], delay=6, status=sent (250 2.6.0 Ok, id=12540-05, from MTA([127.0.0.1]:10025): 250 Ok: queued as 5944841400B) Feb 25 18:09:33 server01 postfix/smtp[12665]: 5944841400B: to=<MAIL@WEB>, relay=WEB[IPWEB], delay=0, status=sent (250 Ok: queued as 99413F2C6E0) When I change the /etc/postfix/virtual and i launch postmap /etc/postfix/virtual into FW in order to sent all email for the MAIL@DOMAIN account to the new mail server I obtain this log: Feb 25 18:13:19 FW amavis[12473]: (12473-07) Passed CLEAN, [FW] <FROM> -> MAIL@NEWMAIL, Message-ID: <011801c877d1$b4b83360$1e289a20$@it>, mail_id: VI7Y4hy-uY6S, Hits: -2.597, 6604 ms Feb 25 18:13:19 FW postfix/smtp[12694]: 11EEA414004: to=<MAIL@NEWMAIL>, orig_to=<MAIL@DOMAIN>, relay=127.0.0.1[127.0.0.1], delay=6, status=sent (250 2.6.0 Ok, id=12473-07, from MTA([127.0.0.1]:10025): 250 Ok: queued as A1E34414009) Feb 25 18:13:19 FW postfix/smtp[12724]: A1E34414009: to=<MAIL@NEWMAIL>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=NEWMAIL.DOMAIN type=A: Host not found) The mail isn't delivered to the mailbox. That's the acutal zone into FW: @ IN SOA FW. root.DOMAIN ( 2008260201 ; serial 86400 ; refresh 7200 ; retry 604800 ; expire 86400 ; ttl ) @ IN NS WEB. @ IN NS FW. @ IN MX 10 mail01 mail01 IN A 10.10.10.x That's the result of nslookup (set q=any) into FW machine: > DOMAIN Server: 127.0.0.1 Address: 127.0.0.1#53 DOMAIN origin = FW mail addr = root.DOMAIN serial = 2008260201 refresh = 86400 retry = 7200 expire = 604800 minimum = 86400 DOMAIN nameserver = FW. DOMAIN nameserver = WEB. DOMAIN mail exchanger = 10 NEWMAIL. FW is a machine with Linux FC4 Can anyone help me? Thanks in advance, Leonardo |
|
|||
|
"Florindo" <florindo@noreceivemail.com> ha scritto nel messaggio
news:eCUwj.46355$Xg7.37863@tornado.fastwebnet.it.. . > Hi to all, > > Before I had this structure: > WEB===INTERNET===>FW===>LAN > > FW was also a mail server and receive the email of all users. Just two > user > receive correctly the email into their Maildir into WEB. > WEB is a Web Server and also a DNS server and receive just two account > email. > > Now i'm in trouble...I've make a new LAN structure like this: > WEB===INTERNET ===> FW ===>LAN > > LAN have an internal machine (10.10.10.x) that will be a new mail server > that I would like to receive any mail of the existing account. > > At the moment everything works fine FROM and TO any email address if I > work > directly INTO a new mail server but If I trying to move an existing > account > (just for test) into a new mail server it doesn't receive any email. > > That's the result of postconf -n into FW: > alias_database = hash:/etc/aliases > alias_maps = hash:/etc/aliases > command_directory = /usr/sbin > config_directory = /etc/postfix > content_filter = smtp-amavis:[127.0.0.1]:10024 > daemon_directory = /usr/libexec/postfix > debug_peer_level = 2 > home_mailbox = Maildir/ > html_directory = no > inet_interfaces = all > mail_owner = postfix > mail_spool_directory = /var/spool/mail > mailq_path = /usr/bin/mailq.postfix > manpage_directory = /usr/share/man > message_size_limit = 20480000 > mydestination = $myhostname, localhost.$mydomain, > /etc/postfix/domain > mydomain = MYDOMAIN > myhostname = MYHOSTNAME > mynetworks = 127.0.0.0/8, 10.10.10.0/24 > mynetworks_style = subnet > myorigin = $mydomain > newaliases_path = /usr/bin/newaliases.postfix > queue_directory = /var/spool/postfix > readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES > relay_domains = $mydestination, /etc/postfix/domain > sample_directory = /usr/share/doc/postfix-2.2.2/samples > sendmail_path = /usr/sbin/sendmail.postfix > setgid_group = postdrop > smtpd_client_restrictions = reject_non_fqdn_sender > smtpd_sender_restrictions = hash:/etc/postfix/access > unknown_local_recipient_reject_code = 550 > > For privacy I have just modified: > MYDOMAIN > MYHOSTNAME > > When the email address (into WEB) works fine I have this result from > maillog: > Feb 25 18:09:33 FW amavis[12540]: (12540-05) Passed CLEAN, [FW] <FROM> -> > <MAIL@WEB>, Message-ID: <011301c877d1$2d95a070$88c0e150$@it>, mail_id: > kEtVAJMPycCF, Hits: -2.596, 6703 ms > Feb 25 18:09:33 FW postfix/smtp[12528]: 08207414009: to=<MAIL@WEB>, > orig_to=<MAIL@DOMAIN>, relay=127.0.0.1[127.0.0.1], delay=6, status=sent > (250 > 2.6.0 Ok, id=12540-05, from MTA([127.0.0.1]:10025): 250 Ok: queued as > 5944841400B) > Feb 25 18:09:33 server01 postfix/smtp[12665]: 5944841400B: to=<MAIL@WEB>, > relay=WEB[IPWEB], delay=0, status=sent (250 Ok: queued as 99413F2C6E0) > > When I change the /etc/postfix/virtual and i launch postmap > /etc/postfix/virtual into FW in order to sent all email for the > MAIL@DOMAIN > account to the new mail server I obtain this log: > Feb 25 18:13:19 FW amavis[12473]: (12473-07) Passed CLEAN, [FW] <FROM> -> > MAIL@NEWMAIL, Message-ID: <011801c877d1$b4b83360$1e289a20$@it>, mail_id: > VI7Y4hy-uY6S, Hits: -2.597, 6604 ms > Feb 25 18:13:19 FW postfix/smtp[12694]: 11EEA414004: to=<MAIL@NEWMAIL>, > orig_to=<MAIL@DOMAIN>, relay=127.0.0.1[127.0.0.1], delay=6, status=sent > (250 > 2.6.0 Ok, id=12473-07, from MTA([127.0.0.1]:10025): 250 Ok: queued as > A1E34414009) > Feb 25 18:13:19 FW postfix/smtp[12724]: A1E34414009: to=<MAIL@NEWMAIL>, > relay=none, delay=0, status=bounced (Host or domain name not found. Name > service error for name=NEWMAIL.DOMAIN type=A: Host not found) > > The mail isn't delivered to the mailbox. > That's the acutal zone into FW: > @ IN SOA FW. root.DOMAIN ( > 2008260201 ; serial > 86400 ; refresh > 7200 ; retry > 604800 ; expire > 86400 ; ttl > ) > > @ IN NS WEB. > @ IN NS FW. > > @ IN MX 10 mail01 > > mail01 IN A 10.10.10.x > > That's the result of nslookup (set q=any) into FW machine: >> DOMAIN > Server: 127.0.0.1 > Address: 127.0.0.1#53 > > DOMAIN > origin = FW > mail addr = root.DOMAIN > serial = 2008260201 > refresh = 86400 > retry = 7200 > expire = 604800 > minimum = 86400 > DOMAIN nameserver = FW. > DOMAIN nameserver = WEB. > DOMAIN mail exchanger = 10 NEWMAIL. > > > FW is a machine with Linux FC4 > Can anyone help me? > > Thanks in advance, > > > Leonardo > > > Problem Solved! There was a mispelled configuration in Bind's zone file. Now there is a little problem with amavisd-new, sometimes need about 5 minutes to deliver a mail(to/from) a local user. Configuration settings about amavisd are: amavisfeed unix - - n - 2 smtp -o smtp_data_done_timeout=12000 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20 Any ideas? Thanks.. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|