Feargal Reilly 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.
Yes, I made modification for this point.
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
Yes, I do it as you said.
But, I still get the error message when I send Message out:
Sep 15 09:33:49 www -sm-mta[16820]: j8F9XnpX016820: ruleset=check_rcpt,
arg1=<qu
[EMAIL PROTECTED]>, relay=[218.81.103.225], reject=450 4.7.1
<[EMAIL PROTECTED]>... Re
laying temporarily denied. Cannot resolve PTR record for 218.81.103.225
I noticed that, the IP 218.81.103.225 is my ADSL gateway's IP address.
so, I am puzzled,
the machine, which being configured for DBmail server, is placed in the
Internet Data Center,
the IP is 61.***.***.***.
What's wrong with me?
Thanks!
Jinsong.