Hi Folks,
after the update 4.4 I can't use Postfix:
errormessage
Name service error for name=localhost type=A: Host not found
or more details:
Sep 1 08:40:01 main postfix/smtpd[5843]: connect from localhost[127.0.0.1] │ Se│Sep 1 08:40:01 main postfix/smtpd[5843]: E45C34B75F: client=localhost[127.0.0.1] │ Se│Sep 1 08:40:01 main postfix/cleanup[5844]: E45C34B75F: message-id=200609010640.k816e1DH005834@main.jacmelaw.local │ Se│Sep 1 08:40:01 main postfix/qmgr[5596]: E45C34B75F: from=root@main.jacmelaw.local, size=822, nrcpt=1 (queue active)│ Se│Sep 1 08:40:01 main sendmail[5834]: k816e1DH005834: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mai│ Se│ler=relay, pri=30344, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as E45C34B75F) │ Se│Sep 1 08:40:02 main postfix/smtpd[5843]: disconnect from localhost[127.0.0.1] │ Se│Sep 1 08:40:02 main postfix/smtp[5845]: E45C34B75F: to=root@main.jacmelaw.local, relay=none, delay=1, status=bounce│ Se│d (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
Some of my ...
/etc/hosts
127.0.0.1 localhost localhost 192.168.0.100 main.jacmelaw.local main 192.168.0.3 meister.goodlack.local meister 192.168.0.6 andrea.goodlack.local andrea
main.cf myhostname = main.jacmelaw.local mydomain = jacmelaw.local myorigin = $mydomain inet_interfaces = localhost mydestination = $myhostname, localhost, $mydomain, localhost.$mydomain
More information needed?
Please, give me some help
Thx Timothy
Am Freitag 01 September 2006 09:26 schrieb Andy Green:
Timothy Kesten wrote:
/etc/nsswitch.conf
say? Is there a line like this floating about in there?
hosts: files dns
Yes, there is such line.
What does
host localhost
[root@main tk]# host localhost localhost has address 127.0.0.1
say from the commandline? How about
dig localhost
[root@main tk]# dig localhost
; <<>> DiG 9.2.4 <<>> localhost ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21763 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: ;localhost. IN A
;; ANSWER SECTION: localhost. 86400 IN A 127.0.0.1
;; Query time: 48 msec ;; SERVER: 217.237.151.33#53(217.237.151.33) ;; WHEN: Fri Sep 1 09:33:13 2006 ;; MSG SIZE rcvd: 43
Timothy
Timothy Kesten wrote:
localhost. 86400 IN A 127.0.0.1
Fine.
Funny that it accepts and bounces it?
Se│Sep 1 08:40:01 main sendmail[5834]: k816e1DH005834: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mai│ Se│ler=relay, pri=30344, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as E45C34B75F) <========== Se│Sep 1 08:40:02 main postfix/smtpd[5843]: disconnect from localhost[127.0.0.1] │ Se│Sep 1 08:40:02 main postfix/smtp[5845]: E45C34B75F: to=root@main.jacmelaw.local, relay=none, delay=1, status=bounce│ Se│d (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
Is the DNS error actually coming from the next hop for the mail?
-Andy
Am Freitag 01 September 2006 09:38 schrieb Andy Green:
Is the DNS error actually coming from the next hop for the mail?
Sorry - my knowledge (as my english too) isn't so great. What do you mean? I send a mail from outside my network - poll it with fetchmail - use postfix, amavis, clamd, spamd until it (should) lay down in my lokal mailbox where I look at this mail with KMail.
Timothy
Timothy Kesten wrote:
Am Freitag 01 September 2006 09:38 schrieb Andy Green:
Is the DNS error actually coming from the next hop for the mail?
Sorry - my knowledge (as my english too) isn't so great. What do you mean? I send a mail from outside my network - poll it with fetchmail - use postfix, amavis, clamd, spamd until it (should) lay down in my lokal mailbox where I look at this mail with KMail.
No your English is fine, I was not so clear. Normally is Postfix is trying to do a DNS lookup on an incoming mail and it is not happy, instead of accepting the mail and bouncing it, as we see here, it will instead NOQUEUE it right there while still talking to the incoming MTA.
That it accepted it and then explicitly bounced it makes it sound like the problem is coming from downstream of Postfix itself in one of your other steps.
I would think about selinux getting in the way of these other apps, if selinux is enabled. Is there anything in /var/log/messages from audit/selinux?
Also maybe try to temporarily defeat the other steps so you only use Postfix and see if that makes a difference.
-Andy
Am Freitag 01 September 2006 09:50 schrieb Andy Green:
No your English is fine, I was not so clear.
Oh no - the main proble is my poor knowledge about postfix
I would think about selinux getting in the way of these other apps, if selinux is enabled. Is there anything in /var/log/messages from audit/selinux?
These are the messages to selinux in my /var/log/messages:
Sep 1 08:06:20 main kernel: selinux_register_security: Registering secondary module capability
Sep 1 08:06:20 main kernel: SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
Sep 1 08:16:10 main kernel: selinux_register_security: Registering secondary module capability
Sep 1 08:16:11 main kernel: SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
And here some more information from maillog (after I have insert smtp_host_lookup = dns, native in my main.cf
Se│Sep 1 10:05:35 main postfix/smtpd[14169]: connect from localhost[127.0.0.1] │ Se│Sep 1 10:05:35 main postfix/smtpd[14169]: 1CB734B70A: client=localhost[127.0.0.1] │ Se│Sep 1 10:05:35 main postfix/cleanup[14172]: 1CB734B70A: message-id=200608312300.13576.opensuse-liste@gmx.de │= el│Sep 1 10:05:35 main postfix/qmgr[14130]: 1CB734B70A: from=opensuse-liste@gmx.de, size=1148, nrcpt=1 (queue active) │ Se│Sep 1 10:05:39 main postfix/smtpd[14169]: disconnect from localhost[127.0.0.1] │ Se│Sep 1 10:05:55 main postfix/smtpd[14186]: connect from unknown[127.0.0.1] │ Se│Sep 1 08:05:55 main postfix/smtpd[14186]: fatal: non-null host address bits in "127.0.0.1/8", perhaps you should use │ Se│"127.0.0.0/8" instead │ Se│Sep 1 10:05:55 main postfix/smtpd[14185]: connect from unknown[127.0.0.1] │ Se│Sep 1 08:05:55 main postfix/smtpd[14185]: fatal: non-null host address bits in "127.0.0.1/8", perhaps you should use │ Se│"127.0.0.0/8" instead │ Se│Sep 1 10:05:56 main postfix/master[14128]: warning: process /usr/libexec/postfix/smtpd pid 14185 exit status 1 │. .0│Sep 1 10:05:56 main postfix/master[14128]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling │ Se│Sep 1 10:05:56 main postfix/master[14128]: warning: process /usr/libexec/postfix/smtpd pid 14186 exit status 1 │ Se│Sep 1 10:05:56 main postfix/smtp[14133]: AF64F4B70B: to=root@main.jacmelaw.local, relay=localhost[127.0.0.1], delay│. .0│=55, status=deferred (host localhost[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, (Ung\303\274lt│ Se│iger Dateideskriptor) at (eval 54) line 145, <GEN8> line 55., MTA([127.0.0.1]:10025), id=14082-01 (in reply to end of │ Se│DATA command)) │ Se│Sep 1 10:05:57 main postfix/smtp[14180]: 1CB734B70A: to=tk@localhost.jacmelaw.local, orig_to=tk@localhost, relay=│ Se│localhost[127.0.0.1], delay=22, status=deferred (host localhost[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 │ ta│port 10025, (Ung\303\274ltiger Dateideskriptor) at (eval 54) line 145, <GEN8> line 632., MTA([127.0.0.1]:10025), id=0│d sk│9877-10 (in reply to end of DATA command))
There is some mentioned about: said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, (Ung\303\274lt│ Se│iger Dateideskriptor) at (eval 54) line 145, <GEN8> line 55., MTA([127.0.0.1]:10025), id=14082-01 (in reply to end of │ Se│DATA command))
What means this???
Timothy
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, Sep 01, 2006 at 10:23:27AM +0200, Timothy Kesten wrote:
There is some mentioned about: said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, (Ung\303\274lt│ Se│iger Dateideskriptor) at (eval 54) line 145, <GEN8> line 55., MTA([127.0.0.1]:10025), id=14082-01 (in reply to end of │ Se│DATA command))
What means this???
Some problem with amavisd.
[]s
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
Timothy Kesten wrote:
Se│Sep 1 08:05:55 main postfix/smtpd[14186]: fatal: non-null host address bits in "127.0.0.1/8", perhaps you should use │ Se│"127.0.0.0/8" instead
Hm this sounds like it might be something to do with something.
grep 127.0.0.1/8 /etc/postfix/* -R
to try to find where this is coming from, change it to 127.0.0.0/8 as suggested by the error, restart postfix.
Se│Sep 1 10:05:56 main postfix/master[14128]: warning: process /usr/libexec/postfix/smtpd pid 14185 exit status 1 │. .0│Sep 1 10:05:56 main postfix/master[14128]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling │
This I have seen when a subprocess started by Postfix is dying. Perhaps one of your series of mail filtering apps is dying.
Se│Sep 1 10:05:56 main postfix/master[14128]: warning: process /usr/libexec/postfix/smtpd pid 14186 exit status 1 │ Se│Sep 1 10:05:56 main postfix/smtp[14133]: AF64F4B70B: to=root@main.jacmelaw.local, relay=localhost[127.0.0.1], delay│. .0│=55, status=deferred (host localhost[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, (Ung\303\274lt│
Hm I bet one of your filter apps was meant to be listening on localhost:10025 but died
Se│iger Dateideskriptor) at (eval 54) line 145, <GEN8> line 55., MTA([127.0.0.1]:10025), id=14082-01 (in reply to end of │ Se│DATA command)) │ Se│Sep 1 10:05:57 main postfix/smtp[14180]: 1CB734B70A: to=tk@localhost.jacmelaw.local, orig_to=tk@localhost, relay=│ Se│localhost[127.0.0.1], delay=22, status=deferred (host localhost[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 │ ta│port 10025, (Ung\303\274ltiger Dateideskriptor) at (eval 54) line 145, <GEN8> line 632., MTA([127.0.0.1]:10025), id=0│d sk│9877-10 (in reply to end of DATA command))
There is some mentioned about: said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, (Ung\303\274lt│ Se│iger Dateideskriptor) at (eval 54) line 145, <GEN8> line 55., MTA([127.0.0.1]:10025), id=14082-01 (in reply to end of │ Se│DATA command))
That it is a 450 means that it is not a fatal error and the mail should be tried again, not the immediate bounce you see.
Try finding and fixing the 127.0.0.1/8 problem, afterwards if it didn't help check with ps -Af that all your filtering programs are active.
-Andy
Am Freitag 01 September 2006 10:31 schrieb Andy Green:
grep 127.0.0.1/8 /etc/postfix/* -R
to try to find where this is coming from, change it to 127.0.0.0/8 as suggested by the error, restart postfix.
This was it !!!
In my master.cf was
localhost:10025 inet n - y - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.1/8 <======================== !!!
-o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001
Changed to 127.0.0.0/8 and it works
Many thanks to all the quys tried me to help, really
Timothy
Timothy Kesten wrote:
Hi Folks,
after the update 4.4 I can't use Postfix:
errormessage
Name service error for name=localhost type=A: Host not found
or more details:
Sep 1 08:40:01 main postfix/smtpd[5843]: connect from localhost[127.0.0.1] │ Se│Sep 1 08:40:01 main postfix/smtpd[5843]: E45C34B75F: client=localhost[127.0.0.1] │ Se│Sep 1 08:40:01 main postfix/cleanup[5844]: E45C34B75F: message-id=200609010640.k816e1DH005834@main.jacmelaw.local │ Se│Sep 1 08:40:01 main postfix/qmgr[5596]: E45C34B75F: from=root@main.jacmelaw.local, size=822, nrcpt=1 (queue active)│ Se│Sep 1 08:40:01 main sendmail[5834]: k816e1DH005834: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mai│ Se│ler=relay, pri=30344, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as E45C34B75F) │ Se│Sep 1 08:40:02 main postfix/smtpd[5843]: disconnect from localhost[127.0.0.1] │ Se│Sep 1 08:40:02 main postfix/smtp[5845]: E45C34B75F: to=root@main.jacmelaw.local, relay=none, delay=1, status=bounce│ Se│d (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
? is not this box supposed to also store the mail? why is it trying to do remote mail delivery?
Some of my ...
/etc/hosts
127.0.0.1 localhost localhost 192.168.0.100 main.jacmelaw.local main 192.168.0.3 meister.goodlack.local meister 192.168.0.6 andrea.goodlack.local andrea
main.cf myhostname = main.jacmelaw.local mydomain = jacmelaw.local myorigin = $mydomain inet_interfaces = localhost mydestination = $myhostname, localhost, $mydomain, localhost.$mydomain
More information needed?
the whole main.cf file without the comments please.
Am Freitag 01 September 2006 09:30 schrieb Feizhou:
? is not this box supposed to also store the mail? why is it trying to do remote mail delivery?
fetchmail - postfix - amavis - postfix - cyrus ...
the whole main.cf file without the comments please.
queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname = main.jacmelaw.local mydomain = jacmelaw.local myorigin = $mydomain inet_interfaces = $myhostname, localhost mydestination = $myhostname, localhost, $mydomain, localhost.$mydomain unknown_local_recipient_reject_code = 450 mynetworks = 192.168.0.0/24 127.0.0.0/8 relayhost = auth.smtp.kundenserver.de alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mail_spool_directory = /var/spool/mail mailbox_command = /usr/lib/cyrus-imapd/deliver mailbox_transport = cyrus luser_relay = $root@mail.space.mil smtpd_banner = $myhostname ESMTP local_destination_concurrency_limit = 2 default_destination_concurrency_limit = 20 debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.2.10/samples readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES cyrus_destination_recipient_limit=1 canonical_maps = hash:/etc/postfix/canonical disable_dns_lookups = no smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_helo_required = no smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth smtp_sasl_security_options = noanonymous smtpd_use_tls = no smtp_use_tls = no content_filter = smtp-amavis:[127.0.0.1]:10024
Timothy
Timothy Kesten wrote:
Am Freitag 01 September 2006 09:30 schrieb Feizhou:
? is not this box supposed to also store the mail? why is it trying to do remote mail delivery?
fetchmail - postfix - amavis - postfix - cyrus ...
right, just what I thought, that mail should have been locally delivered...
the whole main.cf file without the comments please.
mailbox_command = /usr/lib/cyrus-imapd/deliver mailbox_transport = cyrus cyrus_destination_recipient_limit=1
is the cyrus transport defined/uncommented in master.cf?
I just saw Chris Croome's post.
Run newaliases and see if that solves the problem...
Am Freitag 01 September 2006 10:19 schrieb Feizhou:
I just saw Chris Croome's post.
Run newaliases and see if that solves the problem...
Every time I started postfix again, i get this message in my maillog
Sep 1 10:24:16 main postfix/postfix-script: stopping the Postfix mail system Sep 1 10:24:16 main postfix/master[14535]: terminating on signal 15 Sep 1 10:24:16 main sendmail[14572]: alias database /etc/aliases rebuilt by root Sep 1 10:24:16 main sendmail[14572]: /etc/aliases: 82 aliases, longest 10 bytes, 857 bytes total Sep 1 10:24:16 main postfix/postfix-script: starting the Postfix mail system Sep 1 10:24:16 main postfix/master[14618]: daemon started -- version 2.2.10, configuration /etc/postfix
And this message came first time after I have installed the new postfix-version (centos 4.4). Never before. Okay - what have I to do now? newaliases doesn't help
Timothy
Timothy Kesten wrote:
Am Freitag 01 September 2006 10:19 schrieb Feizhou:
I just saw Chris Croome's post.
Run newaliases and see if that solves the problem...
Every time I started postfix again, i get this message in my maillog
Sep 1 10:24:16 main postfix/postfix-script: stopping the Postfix mail system Sep 1 10:24:16 main postfix/master[14535]: terminating on signal 15 Sep 1 10:24:16 main sendmail[14572]: alias database /etc/aliases rebuilt by root Sep 1 10:24:16 main sendmail[14572]: /etc/aliases: 82 aliases, longest 10 bytes, 857 bytes total
sendmail messing around?!!?
ls -l /etc/alternatives/mta*
Sep 1 10:24:16 main postfix/postfix-script: starting the Postfix mail system Sep 1 10:24:16 main postfix/master[14618]: daemon started -- version 2.2.10, configuration /etc/postfix
And this message came first time after I have installed the new postfix-version (centos 4.4). Never before. Okay - what have I to do now? newaliases doesn't help
system-mail-config? :D