[ Bloke.com || Linux || JavaScript || Java || Volleyball || Link Me ]
Free: [ Guestbook || MessageBot || Plugins || Counter || AusPrices || Advertise ]
www.bloke.com

Home - Linux - Sendmail


Sendmail for filters

to enable program filters in .forward files .. comment out the following line
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
then
cd /etc/mail
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
/etc/rc.d/init.d/sendmail restart


Sendmail for remote connections

update edit /etc/mail/sendmail.mc, and comment out this line.
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
and then restart sendmail.
/etc/rc.d/init.d/sendmail restart

was: O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA Change to: O DaemonPortOptions=Name=MTA ie remove the smtp/127.0.0.1 when you want to accept email for a domain add the hostname to /etc/mail/local-host-names restart sendmail if you want to do the virtusertable... add them to /etc/mail/virtusertable then run make, and restart sendmail I made a slightly more logical makefile: but this might mess up some cron/startup scripts?? --/etc/mail/Makefile-- # These could be used by sendmail, but are not part of the default install. # To use them you will have to generate your own sendmail.cf with # FEATURE('whatever') # POSSIBLE += $(shell test -f bitdomain && echo bitdomain.db) POSSIBLE += $(shell test -f uudomain && echo uudomain.db) POSSIBLE += $(shell test -f genericstable && echo genericstable.db) POSSIBLE += $(shell test -f userdb && echo userdb.db) all: ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db @echo Now run /etc/rc.d/init.d/sendmail restart userdb.db : userdb makemap btree $@ < $< %.db : % makemap hash $@ < $< clean: rm -f *.db *~ --/etc/mail/Makefile--

check dns queries on sendmail as teh queue goes:
sendmail -v -d8.32 -q
flush the queue and debug
sendmail -Ac -v -q

Links

Last Change: Monday, 30-Mar-2009 23:58:31 EDT

Disclaimer

The information provided within these pages is provided AS IS, and without any warranty. Following these directions may (but not limited to) crash your computer, delete all the information on your hard disk, open up security holes or cause your house to burn down. I made these pages to provide some information about the setup that I have done, but I did not proofread it for correctness, and in most cases did not test it. There are commands in these pages that would definately delete or corrupt all the data on your computer (especially the dualboot section). In fact it happened to me.... So you are on your own!


Cameron Gregory