Etch a Postfix

Konfiguracja serwerów, usług, itp.
bjjboy
Posty: 9
Rejestracja: 09 kwietnia 2007, 12:42

Etch a Postfix

Post autor: bjjboy »

Witam.

Dzis podnioslem sarga do etcha. I mam maly porblem w logach wyglada to tak:
postfix/stable uptodate 2.3.8-2+b1
logi:
Apr 9 12:38:53 poczta postfix/smtpd[12715]: error: incorrect SMTP server privileges: uid=0 euid=0
Apr 9 12:38:53 poczta postfix/smtpd[12715]: fatal: the Postfix SMTP server must run with $mail_owner privileges
Apr 9 12:38:54 poczta postfix/master[12433]: warning: process /usr/lib/postfix/smtpd pid 12715 exit status 1
Apr 9 12:38:54 poczta postfix/master[12433]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

moj master.cf
# ====================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ====================================================
smtp inet n 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
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

amavisd-new unix - - n - 2 smtp -o smtp_data_done_timeout=1200s -o smtp_never_send_ehlo=yes -o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes

#
# 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}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
#cyrus unix - n n - - pipe
# user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -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
#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
#trace unix - - - - 0 bounce
#verify unix - - - - 1 verify
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
tlsmgr unix - - - 1000? 1 tlsmgr
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
discard unix - - - - - discard
w main.cf dopisalem
mail_owner = postfix
ale to jakos nie pomaga...

jakies sugetie??

[ Dodano: 2007-04-10, 13:18 ]
Rozwiazanie.
1. w pliku master.cf dla serwisu smtp zmienilem unpriv z n na -
2. do /etc/fstab dodalem linijke /var/run/saslauthd /var/spool/postfix/var/run/saslauthd none rw,bind 0 0
3. stworzylem katalog saslauthd w /var/spool/postfix/var/run/
4. klepnalem mount /var/spool/postfix/var/run/saslauthd
5. dodalem usera postfix do grupy sasl
6. zrestartowalem postfixa
ODPOWIEDZ