View previous topic :: View next topic |
Author |
Message |
dru n00b
Joined: 22 Apr 2004 Posts: 54 Location: use strict;
|
Posted: Fri May 21, 2004 6:42 pm Post subject: Configuring Sendmail as a Client Only |
|
|
This isn't for my Gentoo box, but actually for a RPM-Hell (aka Redhat) server at work. I normally use Perl modules to send email, but I want to use logwatch to forward me reports to my work email address, but it uses the system's mail utility. I believe this in turn relies on sendmail to forward the mail to a relay. I'm wondering if someone can tell me what options I have to change in sendmail.mc to set:
1. my internal relay
2. my from address (I've gotten in trouble with my mail admin before for not setting a valid from address and having my messages bounce all over the internal network when the dest address can't be reached )
3. domain
I'm a sendmail virgin and looking at the sendmail.mc file has me lost. _________________ Thanks,
Dru |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Fri May 21, 2004 6:54 pm Post subject: |
|
|
Moved from OTW. |
|
Back to top |
|
|
DaveArb Guru
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Fri May 21, 2004 8:52 pm Post subject: |
|
|
1. my internal relay
I don't understand which relay you mean.
2. my from address (I've gotten in trouble with my mail admin before for not setting a valid from address and having my messages bounce all over the internal network when the dest address can't be reached )
This is set by the mail client, not Sendmail. Sendmail is an MTA only.
3. domain
Sendmail uses the same value as returned by `hostname --fqdn`, IIRC. If you need it to believe it has a different domain name, use MASQUERADE_AS(`yourdomain.invalid')dnl in sendmail.mc. Be sure not to let the bizarre quoting rules mess you up, it opens with grave accent and closes with single quote.
Dave |
|
Back to top |
|
|
dru n00b
Joined: 22 Apr 2004 Posts: 54 Location: use strict;
|
Posted: Sat May 22, 2004 10:20 pm Post subject: |
|
|
Quote: | I don't understand which relay you mean. |
Sorry, I mean the ip adress of my MTA. I want to configure sendmail to just forward email, not receive any. _________________ Thanks,
Dru |
|
Back to top |
|
|
Oopsz Guru
Joined: 08 Oct 2002 Posts: 340
|
|
Back to top |
|
|
|