Forum Moderators: bakedjake

Message Too Old, No Replies

Sendmail problem

Linux Sendmail

         

mack

11:06 am on Oct 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I was setting up a linux email server and have a config issue. When I send mail it is received fine by the recipient, but the email cant be returned. I took a closer look and the from address is name@www.example.com Obviousl the www part should not be there.

Does anyone knwo what config file contains this adress?

Mack.

MattyMoose

4:04 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



IIRC, Sendmail will always use its hostname in the from address, when you're emailing using a user account. So, if you're logged in as mack at that server, and you simply type "mail someoneelse@somewhere.com" at the command line, it will fill it in for you.

You normally need to build your app to change the "from" and reply-to addresses.

I haven't experimented enough with the command-line version to see how to change that particular header.

You can also change the hostname, or force sendmail to use a particular hostname by changing "Dj$w.Foo.COM" in your sendmail.cf file. I *think*, at least, I haven't tried this. :)