Hello, please sign in or register
You are here: Home

Configuring a Sendmail email client

Setup a sendmail email client to use a particular mail exchange ensure sendmail.mc has the following lines.

/etc/mail/sendmail.mc

...
define(`SMART_HOST',`mailservers.mydomain.com')dnl
MASQUERADE_AS(`myothersite.com')dnl 
FEATURE(masquerade_envelope)dnl 
...
#> service sendmail restart
#> echo "hello" | mail -s "test" mail@myemaildomain.com

 If the above doesn't work. `make` sendmail, and then restart sendmail

cd /etc/mail/
make 
# see "Additional Include" if fails to make
service sendmail restart

Additional include

If restart fails, i installed sendmail-cf ( perhaps arbitrarily )

yum install sendmail-cf

Comments

Title*
Comment

Prove you are not a robot

To prove you are not a robot, please type in the six character code you see in the picture below
Security confirmation codeI can't see this!
Contact
Name*
Email never shown*
Home Page

Author

Andrew Dodson
Since:Feb 2007

Comment | flag

Categories

Bookmark and Share