Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix - amavis issue - all mail is being queued
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Vurt
n00b
n00b


Joined: 30 Jul 2004
Posts: 4

PostPosted: Fri Aug 27, 2004 3:32 am    Post subject: Postfix - amavis issue - all mail is being queued Reply with quote

Hi,

i have a spam relay box running postfix, amavis, spamassassin and clam av. It was built using his method: http://www.geocities.com/scottlhenderson/spamfilter.html with the exception it is not in chroot jail and it is on gentoo :)

The server has been running fine for a couple of weeks. Now it seems to be queing all mail after amavis has finished scanning. The mail queues is around 2500 and it is growing by the minute. I have tried ' postfix flush' with no luck , i have stopped and restarded amavis and postfix.

this is a typical log entry:
Code:
Aug 27 13:23:07 spamtoo amavis[25086]: (25086-01) Passed, <xxxx@xxx.com.au> -> <xxxx@xxx.com.au>, Message-ID: <3A8DC136A9441B46948F7476501D178A3B0298@EXCH02.iav.com.au>, Hits: 1.703
Aug 27 13:23:07 spamtoo amavis[25086]: (25086-01) TIMING [total 485 ms] - SMTP EHLO: 2 (1%), SMTP pre-MAIL: 0 (0%), mkdir tempdir: 0 (0%), create email.txt: 1 (0%), SMTP pre-DATA-flush: 4 (1%), SMTP DATA: 79 (16%), body hash: 1 (0%), mkdir parts: 1 (0%), mime_decode: 23 (5%), get-file-type: 10 (2%), get-file-type: 8 (2%), decompose_part: 5 (1%), decompose_part: 0 (0%), parts: 0 (0%), AV-scan-1: 9 (2%), SA msg read: 2 (1%), SA parse: 1 (0%), SA check: 248 (51%), fwd-connect: 7 (1%), fwd-mail-from: 1 (0%), fwd-rcpt-to: 1 (0%), write-header: 3 (1%), fwd-data: 1 (0%), fwd-data-end: 74 (15%), fwd-rundown: 1 (0%), unlink-2-files: 3 (1%), rundown: 0 (0%)
Aug 27 13:23:07 spamtoo postfix/smtp[24662]: 80F428418C: to=<xxxxx@xxxx.com.au>, relay=localhost[127.0.0.1], delay=3, status=sent (250 2.6.0 Ok, id=25086-01, from MTA: 250 Ok: queued as 1FB3D83DFE)


i belive at this point :
Aug 27 13:23:07 spamtoo postfix/smtp[24662]: 80F428418C: to=<xxxxx@xxxxr.com.au>, relay=localhost[127.0.0.1], delay=3, status=sent (250 2.6.0 Ok, id=25086-01, from MTA: 250 Ok: queued as 1FB3D83DFE)
It should relay the mail instead of sending it to localhost /mail queue. It is relaying some mail but it is doing it extremely slowly.


postfix master.cf
Code:
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#smtps    inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission     inet    n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       nqmgr
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp


smtp-amavis     unix    -       -       n       -       2       smtp
        -o smtp_data_done_timeout=1200
        -o disable_dns_lookups=yes

127.0.0.1:10025 inet    n       -       n       -       -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes


#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
                                                                                   


any help would be appreciated..
Thanks
Back to top
View user's profile Send private message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Fri Aug 27, 2004 4:52 am    Post subject: Reply with quote

Ensure the permissions on your temp device are correct. I had this and found it to be the permissions on my temp that stopped it all. Take out the content filter from main.cf and see if mail flows normal.
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
Vurt
n00b
n00b


Joined: 30 Jul 2004
Posts: 4

PostPosted: Fri Aug 27, 2004 5:54 am    Post subject: Reply with quote

It is not the content filter - as it is sending some mail it is just incredibaly slow. I have tried disabling it all and it makes no difference.

i am not sure what you mean by temp devices
Back to top
View user's profile Send private message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Fri Sep 03, 2004 1:30 am    Post subject: Reply with quote

Sorry, I meant your temp directory, or partition.
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum