PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix - nur eine Mail pro Sekunde?



datnoi
10.06.06, 17:58
Hallo,

ich habe auf meiner kiste postfix (2.x) installiert. Ich sende pro tag ca 30-40000 Emails (Nein, kein Spam.). Mein postfix sendet aber (keine ahnung warum) nur eine Email pro Sekunde (wenn ich das richtig auffasse?):



Jun 10 18:55:50 xyz postfix/pickup[17531]: 2C52E9A09F: uid=101 from=<asdf@xyz.de>
Jun 10 18:55:50 xyz postfix/cleanup[22899]: 2C52E9A09F: message-id=<20060610165550.2C52E9A09F@xyz.be>
Jun 10 18:55:51 xyz postfix/pickup[17531]: 2E4239A0A0: uid=101 from=<asdf@xyz.de>
Jun 10 18:55:51 xyz postfix/cleanup[22920]: 2E4239A0A0: message-id=<20060610165551.2E4239A0A0@xyz.be>


Was kann ich tun, damit postfix mehr als eine Email pro Sekunde sendet? Meine Queue wird sonst immer größer.. (Inzwischen 113mb), und die Emails kommen erst nach 2-3 Stunden an. In der config hab ich leider keinerlei Einstellungen gefunden die darauf zutreffen, und auf http://www.postfix.org/postconf.5.html auch nichts.


Viele Dank!

Grüße
noi

killerhorse
11.06.06, 14:17
Hallo,

Kannst du bitte einmal deine main.cf und master.cf posten.
Es gibt da einige Einstellmöglichkeiten die damit zusammenhängen könnten.

MfG

Christian

datnoi
11.06.06, 16:39
Hallo,

kein Problem:

master.cf:


#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ================================================== ========================
# 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_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#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
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=/usr/lib/cyrus/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
flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${extension} ${user}
# Cyrus with "virtdomains: yes"
# Also specify in main.cf: virtual_transport = virt-cyrus
virt-cyrus unix - n n - - pipe
flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${recipient} ${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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

main.cf:



queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = xyz.be
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = host


debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.2.5/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.2.5/readme
home_mailbox = .maildir/


Hab bei der main.cf jetzt mal die kommentare ausgelassen, hoffe das ist ok so (Wollte den Thread nicht überschwemmen)

killerhorse
11.06.06, 20:38
Hallo,

OK da ist im Grunde nichts Ungewöhnliches zu finden (es ist alles auf Standardeinstellungen und die limitieren meines Wissens nichts so brutal), hab allerdings noch keinen Server betreut über den so viele Mails versendet werden (Das was bei Dir am Tag drübergeht, schaff ich vielleicht in einem Monat...)

Was hat der Server denn sonst so zu tun bzw. wie sieht es mit der Auslastung aus? Also was sagt z.B. top?

MfG

Christian

datnoi
11.06.06, 22:19
Also an der Auslastung denke ich liegt es nicht. Es läuft halt noch nen mysqld+lighttpd drauf.




top - 23:18:08 up 158 days, 19:33, 3 users, load average: 0.33, 0.16, 0.11
Tasks: 90 total, 1 running, 89 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.0% us, 3.3% sy, 0.0% ni, 87.7% id, 2.7% wa, 0.3% hi, 0.0% si
Mem: 905924k total, 896112k used, 9812k free, 52808k buffers
Swap: 2048276k total, 53244k used, 1995032k free, 646736k cached



Load ist eigentlich nie über 2, und so wirklich ausgelastet ist das ganze auch nicht.


Viele Grüße

Hitman
13.06.06, 12:22
Eventuel langsame DNS-Auflösung?

Kannst vielleicht in der master.cf beim smtp die maxproc vom standard 100 erhöhen.

Pretender
13.06.06, 15:28
maxproc muss in der master.cf nicht auf 100 gesetzt werden.

Bei Postfix ist er per default auf 100.

http://www.postfix.org/postconf.5.html#default_process_limit

Auszug aus den Configuration Parameters:

default_process_limit (default: 100)

The default maximal number of Postfix child processes that provide a given service. This limit can be overruled for specific services in the master.cf file.

Hitman
13.06.06, 15:32
@Pretender: Wer lesen kann ist klar im Vorteil: "vom standard 100 erhöhen"

Pretender
13.06.06, 15:55
@Hitman: Da habe ich mich tatsächlich beim Lesen "verlesen". Danke das du mich auf diese Unzulänglichkeit aufmerksam gemacht hast. Wer weiß schon, was das noch für Folgen gehabt hätte.