LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sendmail not chaning local address properly (https://www.linuxquestions.org/questions/linux-software-2/sendmail-not-chaning-local-address-properly-122445/)

kudos 12-03-2003 06:29 PM

sendmail not chaning local address properly
 
Hi

i am having a slight problem with sendmail

i have my Domain Masquerading set to harpham.eclipse.co.uk for
server
localhost

server being my machine name.

using webmin to send e-mail from the sendmail mail boxes it is properly changing the localhost into my proper eclipse address and is happpy to send mail out onto the web and pass it on for me.

but if i try and send e-mail from the system it self from the command line or from outlook on my PC through my mail server i get

Quote:

<machine-registration@counter.li.org>... Connecting to smtp.eclipse.co.uk. via relay...
220 mra03.ex.eclipse.net.uk ESMTP
>>> EHLO server.network
250-mra03.ex.eclipse.net.uk
250-PIPELINING
250-SIZE 120000000
250-VRFY
250-ETRN
250-XVERP
250 8BITMIME
>>> MAIL From:<robert@server.network> SIZE=1311
250 Ok
>>> RCPT To:<machine-registration@counter.li.org>
>>> DATA
450 <robert@server.network>: Sender address rejected: Domain not found
<machine-registration@counter.li.org>... Deferred: 450 <robert@server.network>: Sender address rejected: Domain not found
554 Error: no valid recipients
>>> RSET
250 Ok
as u see 450 <robert@server.network> sendmail has not changed the server.network into harpham.eclipse.co.uk for the mail to apear to have come from me in the first place.

what file or what do i need to add into my sendmail config file in order to get it to map properly?

many thanks
kudos

Capt_Caveman 12-13-2003 01:45 AM

In the sendmail.mc config file you have to change the "exposed user" to be something else besides root. For some reason, Sendmail won't masquerade the domain if it is set to root. Unfortunately it's also one of the least documented "features" of Sendmail.

kudos 12-13-2003 10:33 AM

dont worry i solved this problem, took the sendmail mc file and added the MASQUERADE_AS(`harpham.eclipse.co.uk') feature into the mc and redid my config file, works wunders now :)

thx
kudos


All times are GMT -5. The time now is 04:36 PM.