PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix Cyrus



Ghostmaster
14.01.04, 23:50
Hallo,

ich habe einen Suse 9.0 Rechner auf dem Postfix und Cyrus läuft,
dieser wirft mir aber folgende Fehlermeldung aus:

"Jan 15 00:38:26 linuxsrv01 postfix/pipe[1161]: 6386F6EE7: to=<root@linuxsrv01.intern>, orig_to=<root>, relay=vscan, delay=276035, status=deferred (temporary failure)"

anbei meine Configs vielleicht kann mir einer Helfen:

#############
Postifx main.cf
#############
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
myhostname = intern
relay_domains = $mydestination
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination
alias_maps = hash:/etc/aliases
mailbox_transport = cyrus
fallback_transport = cyrus
smtpd_banner = ESMTP LOVE YOUR LINUX
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
mailbox_size_limit = 153240000
message_size_limit = 82020000
readme_directory = /usr/share/doc/packages/postfix/README_FILES
sender_canonical_maps = hash:/etc/postfix/sender_canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
smtpd_sender_restrictions = hash:/etc/postfix/access
transport_maps = hash:/etc/postfix/transport
#defer_transports =
disable_dns_lookups = no
content_filter =
mydestination = $myhostname, localhost.$mydomain, $mydomain
myorigin = $mydomain
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical

#############
Postifx master.cf
#############
# POSTFIX WILL BECOME STUCK UP UNDER HEAVY LOAD
#
# DO NOT CHANGE THE ONE PROCESS LIMIT FOR PICKUP/QMGR OR POSTFIX WILL
# DELIVER MAIL MULTIPLE TIMES.
#
# DO NOT SHARE THE POSTFIX QUEUE BETWEEN MULTIPLE POSTFIX INSTANCES.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
# ================================================== ========================
smtp inet n - n - - smtpd
#628 inet n - n - - qmqpd
pickup unix n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr unix n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
smtp unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#localhost:10025 inet n - n - - smtpd -o content_filter=
#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
tlsmgr fifo - - n 300 1 tlsmgr
#
# 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/lib/cyrus/bin/deliver -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
vscan unix - n n - 10 pipe
flags=q user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user} EXT=${extension} /etc/procmailrc


#############
cyrus.conf
#############
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=0
# imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
# pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440
# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details
# cleanup cmd="ipurge -d 30 -f" period=60


#############
imap.conf
#############
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
#sievedir: /var/lib/sieve
admins: cyrus
allowanonymouslogin: no
autocreatequota: 1000000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
lmtpsocket: /var/lib/imap/socket/lmtp
#lmtp_overquota_perm_failure: no
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA




Danke für eure Hilfe

lg
Martin

Jasper
15.01.04, 01:39
"Jan 15 00:38:26 linuxsrv01 postfix/pipe[1161]: 6386F6EE7: to=<root@linuxsrv01.intern>, orig_to=<root>, relay=vscan, delay=276035, status=deferred (temporary failure)"


die fehlermeldung ist sehr eindeutig. das problem ist amavis. beim weiterleiten der mail via pipe an amavis tritt ein fehler auf. amavis selbst kann noch gestartet werden. du musst die ursache also bei amavis bzw. bei amavis im zusammenspiel mit postfix suchen. cyrus hat damit nichts zu tun.


-j

steve-bracket
15.01.04, 07:34
AFAIK wird unter SuSE9 amavisd-new verwendet, und da schaut die Konfiguration im Vergleich zum Vorgänger wohl etwas anders aus.
Läuft der Dienst (rcamavis) oder nicht?

Gruß
Steve

steve-bracket
15.01.04, 07:56
Also Amavisd muss eigenständig konfiguriert werden.
(/etc/amavisd.conf - welcher Virenscanner verwendet wird und Co.)
Wenn das erledigt ist dann kann man ohne weiteres den Dienst starten.

Jetzt muss Postfix noch wissen wie amavisd angesprochen wird.
Das sollte folgendermassen gehen

/etc/postfix/master.cf
localhost:10025 inet n - n - - smtpd -o content_filter=


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

/etc/postfix/main.cf
content_filter = smtp-amavis:[localhost]:10024

Inwieweit SuSE die Einbindung mittels Yast automatisiert hat weiß ich nicht.
Selber hab ich obiges auch noch nicht getestet.
Spätestens in den nächsten 2 Wochen kann ich aber weiterhelfen, da bis dorthin eine aktuelle Software (vermutlich SuSE9 Prof.) ein bestehendes System ablösen soll.

Gruß

steve-bracket
15.01.04, 08:02
Die SUCHFUNKTION bringt auch einiges.

http://www.linuxforen.de/forums/showthread.php?s=&threadid=117533&highlight=amavisd

http://www.spenneberg.com/Amavisd-new/303.html


Gruß

Doh!
15.01.04, 08:23
Hmm, eigentlich wird laut der "main.cf" und der "master.cf" der vscan (mit was auch immer der verlinkt ist) gar nicht aufgerufen (so ich jetzt nicht ganz blind bin) - siehe Zeile "content_filter = ".

Das ist seltsam

steve-bracket
15.01.04, 08:45
Nene, stimmt schon, aber vielleicht gibt es da eine default Einstellung.
wie geht das bei Postfix nochmal. (bin grad schwer im "Postfix-einarbeiten")
:-)
postconf glaub ich zeigt alle aktiven Direktiven und default Direktiven.

@Doh
Aus einem Posting hab ich rausgelesen das du amavisd-new in Verbindung mit Postfix laufen hast.
Läuft das gut, so im Vergleich zu der alten Version, bzw. gibt es typische Stolpersteine.

Gruß
Steve

Doh!
15.01.04, 09:11
Original geschrieben von steve-bracket

@Doh
Aus einem Posting hab ich rausgelesen das du amavisd-new in Verbindung mit Postfix laufen hast.
Läuft das gut, so im Vergleich zu der alten Version, bzw. gibt es typische Stolpersteine.


läuft gut, deutlich performanter als die alte Version

steve-bracket
15.01.04, 09:23
Gut zu wissen.
thx

Gruß

Ghostmaster
16.01.04, 21:20
in meinem log schaut es jetzt wie folgt aus

Jan 16 22:15:01 linuxsrv01 postfix/smtpd[1758]: warning: connect #1 to subsystem private/proxymap: Connection refused
Jan 16 22:15:11 linuxsrv01 postfix/smtpd[1758]: warning: connect #2 to subsystem private/proxymap: Connection refused
Jan 16 22:15:21 linuxsrv01 postfix/smtpd[1758]: warning: connect #3 to subsystem private/proxymap: Connection refused
Jan 16 22:15:31 linuxsrv01 postfix/smtpd[1758]: warning: connect #4 to subsystem private/proxymap: Connection refused
Jan 16 22:15:41 linuxsrv01 postfix/smtpd[1758]: warning: connect #5 to subsystem private/proxymap: Connection refused
Jan 16 22:15:51 linuxsrv01 postfix/smtpd[1758]: warning: connect #6 to subsystem private/proxymap: Connection refused
Jan 16 22:16:01 linuxsrv01 postfix/smtpd[1758]: warning: connect #7 to subsystem private/proxymap: Connection refused
Jan 16 22:16:11 linuxsrv01 postfix/smtpd[1758]: warning: connect #8 to subsystem private/proxymap: Connection refused
Jan 16 22:16:21 linuxsrv01 postfix/smtpd[1758]: warning: connect #9 to subsystem private/proxymap: Connection refused
Jan 16 22:16:31 linuxsrv01 postfix/smtpd[1758]: warning: connect #10 to subsystem private/proxymap: Connection refused
Jan 16 22:16:41 linuxsrv01 postfix/smtpd[1758]: fatal: connect #11 to subsystem private/proxymap: Connection refused
Jan 16 22:16:42 linuxsrv01 postfix/master[1562]: warning: process /usr/lib/postfix/smtpd pid 1758 exit status 1
Jan 16 22:16:42 linuxsrv01 postfix/master[1562]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jan 16 22:17:20 linuxsrv01 postfix/smtp[1571]: connect to linuxsrv01.intern[172.16.1.15]: read timeout (port 25)
Jan 16 22:17:20 linuxsrv01 postfix/smtp[1571]: A720772B5: to=<root@linuxsrv01.intern>, relay=none, delay=2311, status=deferred (connect to linuxsrv01.intern[172.16.1.15]: read timeout)

##############
meine master.cf
##############
smtp inet n - n - - smtpd
#628 inet n - n - - qmqpd
pickup unix n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr unix n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
smtp unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
localhost:10025 inet n - n - - smtpd -o content_filter=
#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
tlsmgr fifo - - n 300 1 tlsmgr
#
# 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/lib/cyrus/bin/deliver -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
vscan unix - n n - - pipe
user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user} EXT=${extension} /etc/procmailrc