3.06.2009

SLES 11 - Sendmail Notlari


Yakin zamanda yaptigim sendmail gecisinden kisa notlar ve ipuclari:

1. Sendmail oldurmek ve baslatmak

# killall sendmail
# sendmail -bd -q30m

2. Sendmail'de mail yonlendirmesi

# vi /etc/mail/mailertable
domain.com.tr smtp:[{smtp_server_ip/adres}]

# makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable

3. Sendmail loglarini canli izlemek icin

#tailf /var/log/mail


4. Sendmail ile kuyruktaki mailleri yollamak

# sendmail -q

mailleri loglarini gorerek yollamak

#
sendmail -v -q

5. Kuyruktaki mail adedini her 3 saniyede 1 defa gostermek

# while [ 1 ]; do sleep 3; mailq|tail -1; done

6. "rejecting connections on daemon MTA: 15 children, max 15" hatasi cozumu:

#vi /etc/sendmail.cf O MaxDaemonChildren=115 (default degeri 15)