On Wed, 14 Sep 2005 20:25:05 +0800 Jinsong Chen <[EMAIL PROTECTED]> wrote:
> I did following configuration: > > for freebsd.mc : > MAILER(local) > MAILER(smtp) > MAILER(dbmail) I think the order here could be important, put the dbmail definition BEFORE local and smtp, not after. > for sendmail.cf added following line to the end: > > ##### $Id: dbmail.m4,v 8.22 2001/11/12 23:11:34 ca Exp $ > ##### > > Mdbmail, P=/usr/local/sbin/dbmail-smtp, F=DFMSPhnu9, > S=EnvFromSMTP/HdrFro > mSMTP, R=EnvToSMTP/HdrFromSMTP, > T=DNS/RFC822/X-Unix, > A=dbmail -d $u > Did you just manually add that code to the end of sendmail.cf? If so, that could also be a problem - usually the last section of sendmail.cf is dealing with relay rewriting, you possibly confused that. The .mc file is actually there to be used to build the sendmail.cf, you should never have to actually edit sendmail.cf by hand - doing so will easily lead you into a world of pain and is the main reason people believe sendmail to be too complicated. The proper thing to do to on FreeBSD is as follows: in /etc/mail 1) Copy freebsd.mc to your.host.name.mc - (if you upgrade from CVS it would overwrite freebsd.mc). 2) Copy dbmail.m4 to /usr/share/sendmail/cf/mailer/dbmail.m4 3) edit your.host.name.mc and tell it to use dbmail as a mailer: MAILER(dbmail) As I said above, I *think* this has to go above the local one, possibly the smtp one too. 4) then build the new sendmail.cf with make && make install this will create a file your.host.name.cf using the rules in your.host.name.mc. It'll automatically spit dbmail.m4 into the right location. The install then copies it to sendmail.cf Finally, restart sendmail with 'make restart'. If you don't have a copy of dbmail.m4, there's one somewhere on my website at http://www.helgrim.com/dbmaildocs/ -fr.