S4Y: SuSE 9.3, postfix und cyrus

westerjork83

Registered User
Hallo zusammen,

seit ich auf meinem vServer bei S4Y SuSE 9.3 am laufen habe, bekomme ich postfix und cyrus nicht mehr zum laufen. Postfix für sich läuft, nur die Verbindung per lmtp (auch per deliver) zu cyrus geht nicht. Ich bekomme hier diverse Fehlermeldungen (DBERROR) in der /var/log/messages. Hat hier jemand dieses Problem auch gehabt, bzw. SuSE 9.3, postfix und cyrus am laufen?

Bin für jeden Tipp dankbar...


Gruß Arne
 
westerjork83 said:
Hallo zusammen,

seit ich auf meinem vServer bei S4Y SuSE 9.3 am laufen habe, bekomme ich postfix und cyrus nicht mehr zum laufen. Postfix für sich läuft, nur die Verbindung per lmtp (auch per deliver) zu cyrus geht nicht. Ich bekomme hier diverse Fehlermeldungen (DBERROR) in der /var/log/messages. Hat hier jemand dieses Problem auch gehabt, bzw. SuSE 9.3, postfix und cyrus am laufen?

Bin für jeden Tipp dankbar...


Gruß Arne

Cyrus ist in SuSE Linux 9.3 gegen NPTL gelinkt und der 2.4er Kernel stellt kein NPTL zur Verfuegung, du musst das entweder neubauen, auf Virtuozzo mit 2.6 Kernel warten oder mit LD_ASSUME_KERNEL=2.4.20 starten.
 
Hallo allerseits!

Ich habe gerade als root (SuSE 9.3) in der bash folgendes versucht:

Code:
# export LD_ASSUME_KERNEL=2.4.20
# rccyrus restart

Meine /var/log/messages meint dazu folgendes:

Code:
Nov 11 17:38:09 iuz master[21535]: about to exec /usr/lib/cyrus/bin/ctl_cyrusdb
Nov 11 17:38:09 iuz ctl_cyrusdb[21535]: DBERROR @^]^G^H: db4
Nov 11 17:38:09 iuz ctl_cyrusdb[21535]: DBERROR: dbenv->open '/var/lib/imap/db' failed: Invalid argument
Nov 11 17:38:09 iuz ctl_cyrusdb[21535]: DBERROR: init() on berkeley
Nov 11 17:38:09 iuz ctl_cyrusdb[21535]: recovering cyrus databases
Nov 11 17:38:09 iuz ctl_cyrusdb[21535]: skiplist: recovered /var/lib/imap/mailboxes.db (3 records, 624 bytes) in 0 seconds
Nov 11 17:38:09 iuz ctl_cyrusdb[21535]: skiplist: recovered /var/lib/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Nov 11 17:38:09 iuz ctl_cyrusdb[21535]: done recovering cyrus databases
Nov 11 17:38:09 iuz master[21538]: about to exec /usr/lib/cyrus/bin/idled
Nov 11 17:38:09 iuz idled[21538]: DBERROR p ^G^H: db4
Nov 11 17:38:09 iuz idled[21538]: DBERROR: dbenv->open '/var/lib/imap/db' failed: Invalid argument
Nov 11 17:38:09 iuz idled[21538]: DBERROR: init() on berkeley
Nov 11 17:38:09 iuz master[21534]: SLPRegister [service:imap://iuz.:143]
Nov 11 17:38:09 iuz master[21534]: Error registering service with slp -20
Nov 11 17:38:09 iuz master[21534]: SLPRegister [service:sieve://iuz.:2000]
Nov 11 17:38:09 iuz master[21534]: Error registering service with slp -20
Nov 11 17:38:09 iuz master[21534]: ready for work
Nov 11 17:38:09 iuz master[21602]: about to exec /usr/lib/cyrus/bin/ctl_cyrusdb
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR @^]^G^H: db4
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: dbenv->open '/var/lib/imap/db' failed: Invalid argument
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: init() on berkeley
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: checkpointing cyrus databases
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: archiving database file: /var/lib/imap/annotations.db
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR @^]^G^H: db4
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: couldn't checkpoint: Invalid argument
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: sync /var/lib/imap/db: cyrusdb error
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR @^]^G^H: db4
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: error listing log files: Invalid argument
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: archive /var/lib/imap/db: cyrusdb error
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: archiving database file: /var/lib/imap/mailboxes.db
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR @^]^G^H: db4
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: couldn't checkpoint: Invalid argument
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: sync /var/lib/imap/db: cyrusdb error
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR @^]^G^H: db4
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: error listing log files: Invalid argument
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: DBERROR: archive /var/lib/imap/db: cyrusdb error
Nov 11 17:38:09 iuz ctl_cyrusdb[21602]: done checkpointing cyrus databases
Nov 11 17:38:09 iuz master[21534]: process 21602 exited, status 1

Alles in allem sieht das nicht wirklich besser aus, als vor LD_ASSUME_KERNEL (oder habe ich hier etwas falsch gemacht?). Bleibt noch die Alternative mit dem Neubau von Cyrus, die Maik vorgeschlagen hat. Bevor ich morgen ans Werk gehe: hat jemand von euch das vielleicht schon mal gemacht? Falls ja, genügt es, das SRPM mittels rpmbuild neu zu übersetzen, oder muss ich da eventuell noch besondere configure-Optionen im SPEC-File ändern beziehungsweise Header-Files patchen, damit er sich eben nicht gegen die NPTL linkt (oder kann er das sowieso nicht, da die Glibc auf dem vServer keine NPTL hat, sondern noch linuxthreads nutzt)?

Last but not least: ich würde ja denken, dass es sich hier eher um ein Problem der Berkeley-DB handelt, und diese umkonfiguriert werden muss (also ohne NPTL bzw. ohne POSIX-Mutex, was ich auf der suse-linux-ML gelesen hatte). Weiss da jemand etwas genauer Bescheid?

Danke für jeden Kommentar schonmal im voraus, :)

Chripo
 
Last edited by a moderator:
Problem gelöst

Hallo!

OK, es war, wie ich dachte: die Berkeley-DB war der Übeltäter. Mit dem derzeitigen Virtuozzo-Setup funktioniert der alleinige (mutual exclusive) Zugriff eines Prozesses auf eine Berkeley-Datenbank mittels POSIX nicht richtig. Ich habe das original SuSE-SRPM um den configure-Parameter "--disable-posixmutexes" erweitert, sowie den Parameter "--with-mutex=POSIX/pthreads/library" entfernt.

Dank dieser Änderung funktioniert bei mir endlich der Cyrus-imapd, und wahrscheinlich werden nun auch Fehler in anderen Diensten, welche die Berkeley-DB benutzen, der Vergangenheit angehören (z.B. kann nun auch endlich die DB in amavisd-new genutzt werden).

Wer den Kram nicht selbst kompilieren möchte, kann die entstandenen RPMs (und zum Vergleich das geänderte SRPM) auf meiner Website downloaden.

cu,

Chripo
 
Last edited by a moderator:
Hallo,
leider funktioniert der Link zum Download des RPM nicht mehr. Kann mir jemand evtl. das RPM zukommen lassen oder verraten, wo ich es herbekommen kann?

Dankeschön!
Jirrschi
 
Hi,

habe hier auch einen lokalen Server mit Suse 9.3, Postfix und cyrus am laufen. Mein Problem ist, das er keine Mails versendet. Empfangen und per amavis auf spam/viren checken funktioniert einwandfrei.

Ich würde gern auch eMails versenden, nur leider gehen alle an root zurück:

---/var/log/mail---
Code:
Jun  6 15:37:30 linux postfix/pickup[2135]: E2A2627674: uid=65534 from=<nobody>
Jun  6 15:37:30 linux postfix/cleanup[2506]: E2A2627674: message-id=<20060606133730.E2A2627674@linux.mahlis.local>
Jun  6 15:37:30 linux postfix/qmgr[10936]: E2A2627674: from=<nobody@mahlis.local>, size=520, nrcpt=1 (queue active)
Jun  6 15:37:30 linux postfix/smtp[2519]: connection established
Jun  6 15:37:30 linux postfix/smtp[2519]: master_notify: status 0
Jun  6 15:37:30 linux postfix/smtp[2519]: deliver_request_initial: send initial status
Jun  6 15:37:30 linux postfix/smtp[2519]: send attr status = 0
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: flags
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: flags
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: 3
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: queue_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: queue_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: active
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: queue_id
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: queue_id
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: E2A2627674
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: offset
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: offset
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: 108
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: size
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: size
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: 520
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: nexthop
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: nexthop
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: 64.75.152.162
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: encoding
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: encoding
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: sender
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: sender
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: nobody@mahlis.local
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: errors-to
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: errors-to
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: nobody@mahlis.local
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: return-receipt
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: return-receipt
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: time
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: time
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: 1149601050
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: client_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: client_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: client_address
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: client_address
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: protocol_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: protocol_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: helo_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: helo_name
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: sasl_method
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: sasl_method
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: sasl_username
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: sasl_username
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: sasl_sender
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: sasl_sender
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: (end)
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: rewrite_context
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: rewrite_context
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: local
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: offset
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: offset
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: 648
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: original_recipient
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: original_recipient
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: harry@zuhause.de
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: recipient
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: recipient
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: harry@zuhause.de
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp socket: wanted attribute: offset
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute name: offset
Jun  6 15:37:30 linux postfix/smtp[2519]: input attribute value: 0
Jun  6 15:37:30 linux postfix/smtp[2519]: deliver_request_get: file active/E2A2627674
Jun  6 15:37:30 linux postfix/smtp[2519]: deliver_message: from nobody@mahlis.local
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp_parse_destination: 64.75.152.162 smtp
Jun  6 15:37:30 linux postfix/smtp[2519]: connecting to 64.75.152.162 port 25
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp_addr_one: host 64.75.152.162
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp_find_self: not found
Jun  6 15:37:30 linux postfix/smtp[2519]: begin 64.75.152.162 address list
Jun  6 15:37:30 linux postfix/smtp[2519]: pref    0 host 64.75.152.162/64.75.152.162
Jun  6 15:37:30 linux postfix/smtp[2519]: end 64.75.152.162 address list
Jun  6 15:37:30 linux postfix/smtp[2519]: smtp_connect_addr: trying: 64.75.152.162[64.75.152.162] port 25...
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 220 xxxx.vserver.de ESMTP Sendmail 8.11.6/8.11.6; Tue, 6 Jun 2006 15:33:26 +0200
Jun  6 15:37:31 linux postfix/smtp[2519]: > 64.75.152.162[64.75.152.162]: EHLO linux.mahlis.local
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-xxxx.vserver.de Hello p54B89ED0.dip0.t-ipconnect.de [84.184.158.208], pleased to meet you
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-ENHANCEDSTATUSCODES
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-8BITMIME
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-SIZE
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-DSN
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-ONEX
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-XUSR
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250-AUTH LOGIN PLAIN
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250 HELP
Jun  6 15:37:31 linux postfix/smtp[2519]: server features: 0x100b size 0
Jun  6 15:37:31 linux postfix/smtp[2519]: > 64.75.152.162[64.75.152.162]: MAIL FROM:<nobody@mahlis.local> SIZE=520
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250 2.1.0 <nobody@mahlis.local>... Sender ok
Jun  6 15:37:31 linux postfix/smtp[2519]: > 64.75.152.162[64.75.152.162]: RCPT TO:<harry@zuhause.de>
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 550 5.7.1 <harry@zuhause.de>... Relaying denied
Jun  6 15:37:31 linux postfix/smtp[2519]: connect to subsystem private/bounce
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr nrequest = 0
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr flags = 0
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr queue_id = E2A2627674
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr original_recipient = harry@zuhause.de
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr recipient = harry@zuhause.de
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr offset = 648
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr status = 5.0.0
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr action = failed
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr reason = host 64.75.152.162[64.75.152.162] said: 550 5.7.1 <harry@zuhause.de>... Relaying denied (in reply to RCPT TO command)
Jun  6 15:37:31 linux postfix/smtp[2519]: private/bounce socket: wanted attribute: status
Jun  6 15:37:31 linux postfix/smtp[2519]: input attribute name: status
Jun  6 15:37:31 linux postfix/smtp[2519]: input attribute value: 0
Jun  6 15:37:31 linux postfix/smtp[2519]: private/bounce socket: wanted attribute: (list terminator)
Jun  6 15:37:31 linux postfix/smtp[2519]: input attribute name: (end)
Jun  6 15:37:31 linux postfix/smtp[2519]: E2A2627674: to=<harry@zuhause.de>, relay=64.75.152.162[64.75.152.162], delay=1, status=bounced (host 64.75.152.162[64.75.152.162] said: 550 5.7.1 <harry@zuhause.de>... Relaying denied (in reply to RCPT TO command))
Jun  6 15:37:31 linux postfix/smtp[2519]: > 64.75.152.162[64.75.152.162]: RSET
Jun  6 15:37:31 linux postfix/smtp[2519]: < 64.75.152.162[64.75.152.162]: 250 2.0.0 Reset state
Jun  6 15:37:31 linux postfix/smtp[2519]: > 64.75.152.162[64.75.152.162]: QUIT
Jun  6 15:37:31 linux postfix/smtp[2519]: name_mask: resource
Jun  6 15:37:31 linux postfix/smtp[2519]: name_mask: software
Jun  6 15:37:31 linux postfix/smtp[2519]: deliver_request_final: send: "" 0
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr reason =
Jun  6 15:37:31 linux postfix/smtp[2519]: send attr status = 0
Jun  6 15:37:31 linux postfix/smtp[2519]: master_notify: status 1
Jun  6 15:37:31 linux postfix/smtp[2519]: connection closed
Jun  6 15:37:31 linux postfix/cleanup[2506]: 8E26A27CBD: message-id=<20060606133731.8E26A27CBD@linux.mahlis.local>
Jun  6 15:37:31 linux postfix/qmgr[10936]: 8E26A27CBD: from=<>, size=2364, nrcpt=1 (queue active)
Jun  6 15:37:31 linux postfix/qmgr[10936]: E2A2627674: removed
Jun  6 15:37:31 linux postfix/pipe[2510]: 8E26A27CBD: to=<root@mahlis.local>, orig_to=<nobody@mahlis.local>, relay=cyrus, delay=0, status=sent (linux.mahlis.local)
Jun  6 15:37:31 linux postfix/qmgr[10936]: 8E26A27CBD: removed
Jun  6 15:37:55 linux postfix/smtp[2507]: idle timeout -- exiting
Jun  6 15:39:11 linux postfix/smtp[2519]: idle timeout -- exiting

---/etc/postfix/main.cf ---
Code:
#soft_bounce = no
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

#mydomain = trocknerei-mahlis.de, trockmarken.de, kurzehose.de, mahlis.de

#myorigin = $myhostname

#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#    mail.$mydomain, www.$mydomain, ftp.$mydomain

#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

#mynetworks_style = class
#mynetworks_style = host

#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

#relay_domains = $mydestination

#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

#relay_recipient_maps = hash:/etc/postfix/relay_recipients

#in_flow_delay = 1s

#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

#home_mailbox = Mailbox
#home_mailbox = Maildir/
 
#mail_spool_directory = /var/spool/mail

#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

#mailbox_transport = lmtp:unix:/file/name

#fallback_transport = lmtp:unix:/file/name
#fallback_transport =

#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
  
#header_checks = regexp:/etc/postfix/header_checks

#fast_flush_domains = $relay_domains

#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     xxgdb $daemon_directory/$process_name $process_id & sleep 5


# readme_directory: The location of the Postfix README files.
#
program_directory = /usr/lib/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
mailq_path = /usr/bin/mailq
default_privs = nobody
mail_spool_directory = /var/mail
mailbox_command = /usr/lib/cyrus/bin/deliver
mailbox_transport = cyrus
fallback_transport = cyrus
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
default_peer_level = 2
mynetworks = 192.168.1.0/24, 127.0.0.0/8

mydomain = mahlis.local
myhostname = linux.mahlis.local
myorigin = $mydomain

mail_owner = postfix

default_transport = smtp

canonical_maps = hash:/etc/postfix/canonical

smtpd_banner = $myhostname ESMTP

alias_maps = hash:/etc/aliases

setgid_group = maildrop
luser_relay = root@linux.mahlis.local

unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
recipient_delimiter = +
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES

inet_protocols = all
inet_interfaces = all
biff = no
sender_canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
mydestination = $myhostname,localhost.$mydomain,$mydomain
defer_transports =
disable_dns_lookups = no
relayhost = 64.75.152.162
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = yes
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
#smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access
#smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination,reject_unknown_sender_domain,reject_unkown_receipient_domain,reject_rbl_client
#maps_rbl_domains=relays.ordb.org
#smtp_sasl_auth_enable = no
#smtpd_sasl_auth_enable = no
#smtpd_use_tls = no
#smtp_use_tls = no
mailbox_size_limit = 150000000
message_size_limit = 150000000

eine per php verschickte mail sieht dann so aus:
Code:
Return-Path: <MAILER-DAEMON@mahlis.local>
Received: from murder ([unix socket])
	 by linux (Cyrus v2.2.12) with LMTPA;
	 Tue, 06 Jun 2006 15:37:31 +0200
X-Sieve: CMU Sieve 2.2
Received: by linux.mahlis.local (Postfix)
	id 8E26A27CBD; Tue,  6 Jun 2006 15:37:31 +0200 (CEST)
Date: Tue,  6 Jun 2006 15:37:31 +0200 (CEST)
From: MAILER-DAEMON@mahlis.local (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: nobody@mahlis.local
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
	boundary="E2A2627674.1149601051/linux.mahlis.local"
Message-Id: <20060606133731.8E26A27CBD@linux.mahlis.local>

This is a MIME-encapsulated message.

--E2A2627674.1149601051/linux.mahlis.local
Content-Description: Notification
Content-Type: text/plain

This is the Postfix program at host linux.mahlis.local.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

			The Postfix program

<harry@zuhause.de>: host 64.75.152.162[64.75.152.162] said: 550 5.7.1
    <harry@zuhause.de>... Relaying denied (in reply to RCPT TO command)

--E2A2627674.1149601051/linux.mahlis.local
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; linux.mahlis.local
X-Postfix-Queue-ID: E2A2627674
X-Postfix-Sender: rfc822; nobody@mahlis.local
Arrival-Date: Tue,  6 Jun 2006 15:37:30 +0200 (CEST)

Final-Recipient: rfc822; harry@zuhause.de
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host 64.75.152.162[64.75.152.162] said: 550 5.7.1
    <harry@zuhause.de>... Relaying denied (in reply to RCPT TO command)

--E2A2627674.1149601051/linux.mahlis.local
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: by linux.mahlis.local (Postfix, from userid 65534)
	id E2A2627674; Tue,  6 Jun 2006 15:37:30 +0200 (CEST)
To: harry@zuhause.de
Subject: Testanforderung
From: Mahlis <webmaster@mahlis.de>
Message-Id: <20060606133730.E2A2627674@linux.mahlis.local>
Date: Tue,  6 Jun 2006 15:37:30 +0200 (CEST)

Test

--E2A2627674.1149601051/linux.mahlis.local--

Der Linuxrechner steht daheim und ist per DSL ans Internet angebunden. Als Relay (64.75.152.162) steht ein vServer (RedHat, Sendmail) zur Verfügung.
Kann mir jemand sagen, was ich evtl. wo umstellen muss, damit es klappt ??

Thx.

BP
 
Last edited by a moderator:
Back
Top