postfix : welche conf dateien werden geladen ?

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
elkay
Posts: 7
Joined: 2006-05-07 05:11
 

postfix : welche conf dateien werden geladen ?

Post by elkay »

hallo,

habe folgendes problem :
mein postfix , das offenbar nicht als chroot läuft (root link im proc verzeichnis zeigt nach / (?) ) greift auf die resolv.conf in /var/spool/postfix zu und nicht auf die etc/resolv.conf.

ists jetz doch chrooted ? oder ist das normal ? welche conf dateien werden jetz woher geladen ?

*fragend schau*

danke schonmal,
lukas
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: postfix : welche conf dateien werden geladen ?

Post by Joe User »

Postfix nutzt die Konfiguration in /etc/postfix egal ob chroot oder nicht.

Code: Select all

grep smtp /etc/postfix/master.cf
elkay
Posts: 7
Joined: 2006-05-07 05:11
 

Re: postfix : welche conf dateien werden geladen ?

Post by elkay »

was sagt mir das grep ? *blödfrag*
und warum wird jetz die resolv.conf aus dem spool verzeichnis verwendet und nicht die aus etc/

gruß,
lukas
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: postfix : welche conf dateien werden geladen ?

Post by Joe User »

*blödantwort* Poste die Ausgabe des grep...
elkay
Posts: 7
Joined: 2006-05-07 05:11
 

Re: postfix : welche conf dateien werden geladen ?

Post by elkay »

sorry, stand auf der leitung :roll:

Code: Select all

grep smtp /etc/postfix/master.cf
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
587       inet  n       -       -       -       -       smtpd
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#   -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
amavis    unix  -       -       n       -       2       smtp
   -o smtp_data_done_timeout=1200
   -o smtp_send_xforward_command=yes
localhost:10025 inet  n -       n       -      -        smtpd
   -o smtpd_restriction_classes=
   -o smtpd_client_restrictions=
   -o smtpd_helo_restrictions=
   -o smtpd_sender_restrictions=
   -o smtpd_recipient_restrictions=permit_mynetworks,reject
   -o smtpd_override_options=no_address_mappings
smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
#   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
siehst du irgendwas ungutes ?

lukas
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: postfix : welche conf dateien werden geladen ?

Post by Joe User »

Keine Ahnung wer oder was Deine master.cf erstellt hat, aber das Original aus dem Postfix-Source sieht so aus:

Code: Select all

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#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       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
	-o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache	  unix	-	-	n	-	1	scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
#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)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
#uucp      unix  -       n       n       -       -       pipe
#  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# ====================================================================
#
# Other external delivery methods.
#
#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/local/sbin/bsmtp -f $sender $nexthop $recipient
#
#scalemail-backend unix -       n       n       -       2       pipe
#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
#  ${nexthop} ${user} ${extension}
#
#mailman   unix  -       n       n       -       -       pipe
#  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
#  ${nexthop} ${user}
elkay
Posts: 7
Joined: 2006-05-07 05:11
 

Re: postfix : welche conf dateien werden geladen ?

Post by elkay »

auf dem server läuft der vhcs-fork ispc omega.
aber das ist doch eigentlich unerheblich für die tatsache dass postfix die resolv.conf aus dem var/spool/etc statt aus dem etc/ verzeichnis liest.
darum gehts mir eigentlich.
kann mir da jemand einen tipp geben warum das so ist ?

lukas
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: postfix : welche conf dateien werden geladen ?

Post by Joe User »

Weil in Deiner master.cf noch immer mehrere Postfix-Bestandteile im Chroot gestartet werden...
elkay
Posts: 7
Joined: 2006-05-07 05:11
 

Re: postfix : welche conf dateien werden geladen ?

Post by elkay »

Weil in Deiner master.cf noch immer mehrere Postfix-Bestandteile im Chroot gestartet werden...


könntest du mir das bitte etwas ausführlicher erklären?

welche teile sind das ? woran siehst du dass diese im chroot gestartet werden ? ist das defaultmässig so ?

lukas
adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA
 

Re: postfix : welche conf dateien werden geladen ?

Post by adjustman »

Code: Select all

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
ist nich im chroot, ein - oder y ist es aber
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: postfix : welche conf dateien werden geladen ?

Post by Joe User »

Ein Beispiel sollte ausreichen:
Default master.cf

Code: Select all

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
Deine master.cf

Code: Select all

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
Vergleiche mal die Spalte chroot miteinander:

Code: Select all

y = yes | n = no | - = default (Wert in Klammern)
Die Default master.cf aus dem Postfix-Source habe ich Dir bereits gepostet, jetzt trägst Du am Ende nur noch Deine amavis und localhost Services nach, restartest Postfix und es sollte wie gewünscht funktionieren.
elkay
Posts: 7
Joined: 2006-05-07 05:11
 

Re: postfix : welche conf dateien werden geladen ?

Post by elkay »

dank dir für deine geduld.
ein "man 5 master" hätte den thread etwas verkürzen können wie ich jetz gemerkt hab ; )