> -----Original Message----- > From: Johann Snyman > Sent: Sunday, March 09, 2003 4:41 AM > Subject: Sendmail on RH8.0 from CL > > > Hi! > > Well, I have RH8.0 mostly up and running, > but I have a problem or two. I hope somebody might be able to help me > out here. > > Sendmail: > If I send mail from sylpheed, (like this one) my adress is correct, > eg. [EMAIL PROTECTED] > I use sendmail as MTA when sending from sylpheed. It sends > the mail to "localhost" and sendmail takes care of the rest. > > The problem is that when I send mail from the CL, eg: > mail [EMAIL PROTECTED] or even mail somelocaluser > > the user receives my mail as coming from [EMAIL PROTECTED] > and mweb of course bounces back and mail destined to the 'net. > > How do I tell sendmail to always send as [EMAIL PROTECTED]
1) Add the following line to /etc/mail/sendmail.mc MASQUERADE_AS(`mweb.co.za')dnl 2) As root, rebuild your /etc/mail/sendmail.cf file... # cd /etc/mail # cp sendmail.cf sendmail.cf.orig # m4 sendmail.mc >sendmail.cf 3) Restart sendmail # /etc/init.d/sendmail restart 4) Test using the CL mail example in your post. Steve Cowles -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list