Ausgehende eMail mit Postfix + mySQL + Amavis

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
naucki
Posts: 15
Joined: 2003-06-18 14:53
Location: Berlin

Ausgehende eMail mit Postfix + mySQL + Amavis

Post by naucki » 2003-06-19 23:58

Hallo,

ich habe Postfix mit mySQL und Amavis aufgesetzt.
Das Empfangen per IMAP/POP3 ist kein Problem, auch das Versende an locale Domains nicht. Wenn ich jedoch eine eMail an eine externe Adresse senden will kommt folgende Fehlermeldung:
Jun 19 23:30:17 hostname postfix/qmgr[4254]: qmgr_transport_select: smtp
Jun 19 23:30:17 hostname postfix/qmgr[4254]: qmgr_active_drain: allocate
smtp
Jun 19 23:30:17 hostname postfix/qmgr[4254]: connect to subsystem
private/smtp: Connection refused
Jun 19 23:30:17 hostname postfix/qmgr[4254]: warning: connect to transport
smtp: Connection refused
Jun 19 23:30:17 hostname postfix/qmgr[4254]: qmgr_transport_throttle:
transport smtp: reason: transport is unavailable
Jun 19 23:31:17 hostname postfix/qmgr[4254]: qmgr_transport_unthrottle:
transport smtp
Jun 19 23:31:17 hostname postfix/qmgr[4254]: watchdog_start: 0x805aec0
Jun 19 23:31:17 hostname postfix/qmgr[4254]: qmgr_transport_select: smtp
Jun 19 23:31:17 hostname postfix/qmgr[4254]: qmgr_active_drain: allocate
smtp
Jun 19 23:31:17 hostname postfix/qmgr[4254]: connect to subsystem
private/smtp: Connection refused
Jun 19 23:31:17 hostname postfix/qmgr[4254]: warning: connect to transport
smtp: Connection refused
Jun 19 23:31:17 hostname postfix/qmgr[4254]: qmgr_transport_throttle:
transport smtp: reason: transport is unavailable
Jun 19 23:31:30 hostname postfix/qmgr[4254]: trigger_server_accept_fifo:
trigger arrived
...
myhostname = hostname
myorigin = hostname.com
mydomain = hostname.com
mydestination = $myhostname, localhost, localhost.$mydomain, $mydomain, $transport_maps
mynetworks = 127.0.0.0/8
content_filter = vscan:
soft_bounce = yes
inet_interfaces = all
maps_rbl_domains = relays.ordb.org
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
canonical_maps = hash:/etc/postfix/canonical
home_mailbox = Maildir/

virtual_mailbox_limit = 20000000
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:1008
virtual_gid_maps = static:1008
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_maps = mysql:/etc/postfix/mysql-virtual.cf

local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_maps_rbl, check_relay_domains
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
strict_rfc821_envelopes = no
meine master.cf:
smtp inet n - n - - smtpd
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
#smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -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=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
#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

#Amavis
vscan unix - n n - 10 pipe flags=q user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}
localhost:10025 inet n - n - - smtpd -o content_filter=
maildrop unix - n n - - pipe flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient}
Jemand eine Idee was der Fehler sein könnte ?

naucki
Posts: 15
Joined: 2003-06-18 14:53
Location: Berlin

Re: Ausgehende eMail mit Postfix + mySQL + Amavis

Post by naucki » 2003-06-21 01:43

Ich habe mittlerweise von dem Debianpacket postfix-amavis
auf ein neues amavisd-new-20030616 umgestellt.

Der Fehler tritt immernoch auf, und zwar nachdem die eMail von Amavis wieder zurück zu Postfix kommt und Postfix die versenden will.

Jemand eine Idee ?