A question about sendmail and host.domain.com...
I'm running CentOS 5.4 with sendmail. My computer hostname is bob.domain.com. Whenever I would nc -v 127.0.0.1 25 into sendmail I would get bob.domain.com on the banner. Whenever I send out email the emails would be user@bob.domain.com. I wanted the email to show up as user@domain.com. So in the etc/mail/sendmail.cf file I changed the line
Code:
Dj$w.hostname.com Code:
Djhostname.com Code:
mail -s "test" xxx@xxx.com |
In addition to the first question I would also like to know how to REQUIRE smtp authentication to send mail. I was able to setup AUTH LOGIN PLAIN. I have saslauthd setup. I use auth login which accepts base 64 credentials. Anyhow, I can authenticate just fine. However, I can also ehlo into the mail server and then go directly to mail from: without authenticating. How do I make it mandatory to authenticate first?
|
I have solved the first question. In order for my emails to show user@domain.com instead of user@bob.domain.com I simply had to edit my /etc/hosts file to have my IP match domain.com instead of bob.domain.com. That was it.
|
Wanted to see if there was an alternative to my first question. Seems that mail and telnet smtp go by the /etc/hosts file. I wanted to override that somehow.
|
n addition to the first question I would also like to know how to REQUIRE smtp authentication to send mail. I was able to setup AUTH LOGIN PLAIN. I have saslauthd setup. I use auth login which accepts base 64 credentials. Anyhow, I can authenticate just fine. However, I can also ehlo into the mail server and then go directly to mail from: without authenticating. How do I make it mandatory to authenticate first?
|
The require SMTP authentication is toggled by adding this
Code:
DaemonPortOptions=Port=smtp, Addr=x.x.x.x, Name=MTA, Modify=a Works like a charm. |
All times are GMT -5. The time now is 02:21 PM. |