want to send mail from local box not domain mail server
Posted on 2011-02-15
I have just installed centos 5.5
i want this box to send email using sendmail from this box and not using my mail.domain.com server. I am using sendmail.i386 0:8.13.8-8.el5
with the default config when i try to send mail i get the error:
Feb 15 19:59:48 rtx sendmail: p1G1xm71009462: firstname.lastname@example.org, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30037, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
which is to be expected with the default.
so then i comment DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
now when i send mail it is trying relay through my mail.mydomain.com
does it look at the domain record or something? i did not put in mail.mydomain.com anywhere.
I do not want it relaying though the mail mail server
thanks for any help