[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

postfix + mysql + amavisd-new



ho configurato postfix, senza un antivrus e funzionava perfettamente, quando poi ho deciso di installare amavis + clamav il sistema di posta non ha volto piu sapere di funzionare. queste sono le configurazioni del mio postfix

main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = shellnet.ath.cx
mydestination = southbridge.shellnet.it, localhost.shellnet.it, localhost
relayhost = out.alice.it
mynetworks = 127.0.0.0/8
#mailbox_command = /usr/bin/procmail
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/mail
virtual_uid_maps = static:105
virtual_gid_maps = static:106

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key

#alias_maps = hash:/etc/aliases
#alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
#mydestination = shellnet.ath.cx, southbridge.shellnet.it, localhost.shellnet.it, localhost
#relayhost = out.alice.it
#mynetworks = 127.0.0.0/8
#mailbox_command = /usr/bin/procmail
#mailbox_size_limit = 0
#recipient_delimiter = +
#inet_interfaces = all

   content_filter = vscan:[127.0.0.1]:10024
#receive_override_options = no_address_mappings

unknown_local_recipient_reject_code = 450


master.cf
smtp      inet  n       -       -       -       - :      smtpd
#submission inet n      -       -       -       -       smtpd
   -o cleanup_service_name=pre-cleanup
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# 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}
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
#smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587      inet  n       -       n       -       -       smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

vscan  unix  -  n  n  -  10  pipe user=amavis argv=/usr/sbin/amavis $sender $recipient
localhost:10025  inet  n  -  n  -  -   smtp
 -o smtp_data_done_timeout=1200
 -o disable_dns_lookup=yes
 127.0.0.1:10025 inet n - n - - smtpd
 -o content filter=


amavis naturalmente e attivo, viene inizializzato corretamente, vede senza problemi clamav , ad un certo punto nei log mail vedo:

Jun 10 20:14:24 southbridge amavis[9135]: Using internal av scanner code for (primary) Clam Antivirus-clamd
Jun 10 20:14:24 southbridge amavis[9135]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan

//fin qui tutto bene

Jun 10 20:14:26 southbridge master[9136]: fatal: master_spawn: exec /usr/lib/postfix/:: No such file or directory
Jun 10 20:14:27 southbridge postfix/master[9130]: warning: process /usr/lib/postfix/: pid 9136 exit status 1
Jun 10 20:14:27 southbridge postfix/master[9130]: warning: /usr/lib/postfix/:: bad command startup -- throttling
Jun 10 20:15:15 southbridge postfix/qmgr[9133]: warning: connect to transport filter: Connection refused
Jun 10 20:15:27 southbridge master[9140]: fatal: master_spawn: exec /usr/lib/postfix/:: No such file or directory
Jun 10 20:15:28 southbridge postfix/master[9130]: warning: process /usr/lib/postfix/: pid 9140 exit status 1
Jun 10 20:15:28 southbridge postfix/master[9130]: warning: /usr/lib/postfix/:: bad command startup -- throttling

... allora provo a togliere tutte le configurazioni di amavis dai miei file, e reloaddo postfix

sempre questi errori ed in piu

Jun 10 20:57:44 southbridge postfix/qmgr[10337]: warning: connect to transport filter: Connection refused

mi accorgo a questo punto che devo togliere la coda di postfix e faccio postsuper -d ALL [tutte e 4 le code]
adesso l'errore
Jun 10 20:57:44 southbridge postfix/qmgr[10337]: warning: connect to transport filter: Connection refused

ma continuano a permanere gli errori precedenti.

1) riavvio.
2) faccio start/stop
3) cerco su google (tutot in giapponese o tedesco)
4) faccio il purege di amavis (perdo i config)
5) chmoddo 777 /usr/lib/postfix
6) di tutto e di piu. fino ad adesso 01:10

per 30 secondi, prima che mi venisse la felice idea di mettere anche amavis e clamd FUNZIONAVA TUTTO PERFETTAMENTE perche adesso non dovrebbe funzionare, non me lo spiego...

e voi???

grazie in anticipo..
ciao.



Reply to: