Discussion:
status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
(too old to reply)
Ilya Vishnyakov
2007-02-13 16:29:49 UTC
Permalink
Hello POSTFIX GURUS I'm getting this in the mailq:

A6FB9552C6C 957 Tue Feb 13 10:20:35 ***@server.com
(connect to 127.0.0.1[127.0.0.1]: Connection
refused)
***@server.com

grep A6FB9552C6C /var/log/maillog
produces this:

Feb 13 11:11:17 postfix/smtp[1022]: A6FB9552C6C: to=<***@server.com>,
orig_to=<root>, relay=none, delay=3042, delays=3042/0/0.01/0,
dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:
Connection refused)

I restarted postfix and did postsuper -r ALL
however, emails still sit in there.

i restarted amavisd:

ps -aux | grep amavis
vscan 1081 6.1 1.8 126360 73844 ?? Ss 11:20AM 0:00.54
amavisd (master) (perl5.8.8)
vscan 1085 0.5 1.8 127192 74036 ?? S 11:20AM 0:00.02
amavisd (virgin child) (perl5.8.8)
vscan 1084 0.0 1.8 127192 74040 ?? S 11:20AM 0:00.03
amavisd (virgin child) (perl5.8.8)
vscan 1086 0.0 1.8 127192 74040 ?? S 11:20AM 0:00.02
amavisd (virgin child) (perl5.8.8)
vscan 1087 0.0 1.8 127192 74044 ?? S 11:20AM 0:00.01
amavisd (virgin child) (perl5.8.8)
vscan 1088 0.0 1.8 127192 74044 ?? S 11:20AM 0:00.01
amavisd (virgin child) (perl5.8.8)

postconf -n shows:

content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
header_checks = regexp:/usr/local/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_transport = cyrus
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
maximal_queue_lifetime = 10d
message_size_limit = 20480000
mydestination = $myhostname, localhost.$mydomain, localhost

mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix


sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,
check_sender_access hash:/usr/local/etc/postfix/sender_access,
permit_sasl_authenticated, reject_unauth_pipelining,
reject_unauth_destination, reject_invalid_hostname,
reject_non_fqdn_sender, reject_unknown_sender_domain,
reject_non_fqdn_recipient, reject_rbl_client relays.ordb.org,
reject_rbl_client sbl.spamhaus.org, reject_rbl_client
bl.spamcop.net, reject_rbl_client list.dsbl.org,
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /usr/local/etc/postfix/ssl/server.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/server.pem
smtpd_tls_key_file = /usr/local/etc/postfix/ssl/server.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550


Please help me. mailq is getting more and more emails....
Ralf Hildebrandt
2007-02-13 16:32:22 UTC
Permalink
Post by Ilya Vishnyakov
content_filter = smtp-amavis:[127.0.0.1]:10024
telnet 127.0.0.1 10024
gives which output?
--
Ralf Hildebrandt (***@charite.de) ***@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
If you give someone a program, you will frustrate them for a day; if
you teach them how to program, you will frustrate them for a lifetime.
Ilya Vishnyakov
2007-02-13 16:37:10 UTC
Permalink
[***@server :~] $ telnet 127.0.0.1 10024
Trying 127.0.0.1...
Connected to localhost.server.com.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
Post by Ilya Vishnyakov
content_filter = smtp-amavis:[127.0.0.1]:10024
telnet 127.0.0.1 10024 gives which output?
Ralf Hildebrandt
2007-02-13 16:39:54 UTC
Permalink
Post by Ilya Vishnyakov
Trying 127.0.0.1...
Connected to localhost.server.com.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
Odd, I have no idea why Postfix would think otherwise, then.
% postfix flush
doesn't help?
--
Ralf Hildebrandt (***@charite.de) ***@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
Why you can't find your system administrators:
Booted to DOS and is playing doom across the network.
Ralf Hildebrandt
2007-02-13 16:41:15 UTC
Permalink
Post by Ilya Vishnyakov
ps -aux | grep amavis
vscan 1081 6.1 1.8 126360 73844 ?? Ss 11:20AM 0:00.54
amavisd (master) (perl5.8.8)
vscan 1085 0.5 1.8 127192 74036 ?? S 11:20AM 0:00.02
amavisd (virgin child) (perl5.8.8)
vscan 1084 0.0 1.8 127192 74040 ?? S 11:20AM 0:00.03
amavisd (virgin child) (perl5.8.8)
vscan 1086 0.0 1.8 127192 74040 ?? S 11:20AM 0:00.02
amavisd (virgin child) (perl5.8.8)
vscan 1087 0.0 1.8 127192 74044 ?? S 11:20AM 0:00.01
amavisd (virgin child) (perl5.8.8)
vscan 1088 0.0 1.8 127192 74044 ?? S 11:20AM 0:00.01
amavisd (virgin child) (perl5.8.8)
What is the max_children setting for amavisd-new in your amavisd.conf?
5?
Post by Ilya Vishnyakov
content_filter = smtp-amavis:[127.0.0.1]:10024
Show the smtp-amavis entry from master.cf
--
Ralf Hildebrandt (***@charite.de) ***@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
This is the first age that's paid much attention to the future, which is
a little ironic since we may not have one. -- Arthur Clarke
Ilya Vishnyakov
2007-02-13 16:48:56 UTC
Permalink
After postfix flush i noticed this in /var/log/maillog

Feb 13 11:39:58 amavis[1085]: (01085-02) Checking: zuJuhiMU5gZ0
<***@server.com> -> <***@server.com>
Feb 13 11:39:58 amavis[1085]: (01085-02) ClamAV-clamd: Can't send to
socket /var/run/clamav/clamd: Socket is not connected, retrying (1)
Feb 13 11:39:59 amavis[1085]: (01085-02) (!)ClamAV-clamd: Can't
connect to UNIX socket /var/run/clamav/clamd: No such file or
directory, retrying

And then I all of the sudden I received all pending emails. However,
this problem might resurface....?
Post by Ralf Hildebrandt
ps -aux | grep amavis vscan 1081 6.1 1.8 126360 73844 ??
Ss 11:20AM 0:00.54 amavisd (master) (perl5.8.8) vscan 1085
0.5 1.8 127192 74036 ?? S 11:20AM 0:00.02 amavisd (virgin
child) (perl5.8.8) vscan 1084 0.0 1.8 127192 74040 ?? S
11:20AM 0:00.03 amavisd (virgin child) (perl5.8.8) vscan
1086 0.0 1.8 127192 74040 ?? S 11:20AM 0:00.02 amavisd
(virgin child) (perl5.8.8) vscan 1087 0.0 1.8 127192 74044
?? S 11:20AM 0:00.01 amavisd (virgin child) (perl5.8.8)
vscan 1088 0.0 1.8 127192 74044 ?? S 11:20AM 0:00.01
amavisd (virgin child) (perl5.8.8)
What is the max_children setting for amavisd-new in your
amavisd.conf? 5?
grep max_children /usr/local/etc/amavisd.conf
gives nothing
Post by Ralf Hildebrandt
content_filter = smtp-amavis:[127.0.0.1]:10024
Show the smtp-amavis entry from master.cf
grep smtp-amavis /usr/local/etc/postfix/master.cf
smtp-amavis unix - - n - 2 smtp
Ralf Hildebrandt
2007-02-13 17:00:07 UTC
Permalink
Post by Ilya Vishnyakov
After postfix flush i noticed this in /var/log/maillog
Feb 13 11:39:58 amavis[1085]: (01085-02) Checking: zuJuhiMU5gZ0
Feb 13 11:39:58 amavis[1085]: (01085-02) ClamAV-clamd: Can't send to
socket /var/run/clamav/clamd: Socket is not connected, retrying (1)
Feb 13 11:39:59 amavis[1085]: (01085-02) (!)ClamAV-clamd: Can't
connect to UNIX socket /var/run/clamav/clamd: No such file or
directory, retrying
Clamd is running? You probably have a permission problem with that
socket
Post by Ilya Vishnyakov
grep max_children /usr/local/etc/amavisd.conf
gives nothing
Search harder :)= But I guess 5 > 2 :)
Post by Ilya Vishnyakov
grep smtp-amavis /usr/local/etc/postfix/master.cf
smtp-amavis unix - - n - 2 smtp
That's ok.
--
Ralf Hildebrandt (***@charite.de) ***@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
"Of course, the best way to get accurate information on Usenet is to
post something wrong and wait for corrections." - Matthew Austern.
Ilya Vishnyakov
2007-02-13 17:14:17 UTC
Permalink
Post by Ralf Hildebrandt
Post by Ilya Vishnyakov
After postfix flush i noticed this in /var/log/maillog
Feb 13 11:39:58 amavis[1085]: (01085-02) Checking: zuJuhiMU5gZ0
amavis[1085]: (01085-02) ClamAV-clamd: Can't send to socket
/var/run/clamav/clamd: Socket is not connected, retrying (1) Feb
13 11:39:59 amavis[1085]: (01085-02) (!)ClamAV-clamd: Can't
connect to UNIX socket /var/run/clamav/clamd: No such file or
directory, retrying
Clamd is running? You probably have a permission problem with that
socket
after and even before I run:

/usr/local/etc/rc.d ./clamav-clamd restart

ps -aux | grep clamav
me 1406 0.0 0.0 5776 1224 p0 S+ 12:06PM 0:00.00 grep clamav
Post by Ralf Hildebrandt
Post by Ilya Vishnyakov
grep max_children /usr/local/etc/amavisd.conf gives nothing
Search harder :)= But I guess 5 > 2 :)
I'm sorry is this what you mean?

$max_servers = 5; # number of pre-forked children (2..15 is
common)
Post by Ralf Hildebrandt
Post by Ilya Vishnyakov
grep smtp-amavis /usr/local/etc/postfix/master.cf smtp-amavis
unix - - n - 2 smtp
That's ok.
at least something :)
Ralf Hildebrandt
2007-02-13 19:19:53 UTC
Permalink
Post by Ilya Vishnyakov
ps -aux | grep clamav
me 1406 0.0 0.0 5776 1224 p0 S+ 12:06PM 0:00.00 grep clamav
ps auxwww|grep clam
--
Ralf Hildebrandt (***@charite.de) ***@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
I hate microsoft with a passion. They suck. I irrationally loathe the
company, their products, and everything they stand for.
Ilya Vishnyakov
2007-02-13 20:00:38 UTC
Permalink
Post by Ralf Hildebrandt
Post by Ilya Vishnyakov
ps -aux | grep clamav
me 1406 0.0 0.0 5776 1224 p0 S+ 12:06PM 0:00.00 grep clamav
ps auxwww|grep clam
nothing

ps auxwww|grep clam
me 1829 0.0 0.0 5776 1224 p0 S+ 2:56PM 0:00.00 grep clam
Ralf Hildebrandt
2007-02-13 20:59:42 UTC
Permalink
Post by Ralf Hildebrandt
ps auxwww|grep clam
me 1829 0.0 0.0 5776 1224 p0 S+ 2:56PM 0:00.00 grep clam
Then find out (using the logs) why it dies.
--
Ralf Hildebrandt (***@charite.de) ***@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
A: No.
Q: Should I include quotations after my reply?
Ilya Vishnyakov
2007-02-13 21:44:42 UTC
Permalink
Post by Ralf Hildebrandt
Post by Ralf Hildebrandt
ps auxwww|grep clam
me 1829 0.0 0.0 5776 1224 p0 S+ 2:56PM 0:00.00 grep clam
Then find out (using the logs) why it dies.
i added it to rc.conf and restarted the machine and it looks like its
running now. hehe. thank you very much :)

ps auxwww|grep clam
vscan 700 0.0 0.9 43028 36164 ?? Ss 3:25PM 0:01.91
/usr/local/sbin/clamd
clamav 705 0.0 0.1 8504 2116 ?? Is 3:25PM 0:00.02
/usr/local/bin/freshclam --daemon -p /var/run/clamav/freshclam.pid
me 1310 0.0 0.0 5776 1224 p0 S+ 4:40PM 0:00.00 grep clam
Loading...