Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring Sendmail as a Client Only
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dru
n00b
n00b


Joined: 22 Apr 2004
Posts: 54
Location: use strict;

PostPosted: Fri May 21, 2004 6:42 pm    Post subject: Configuring Sendmail as a Client Only Reply with quote

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 :oops: )
3. domain

I'm a sendmail virgin and looking at the sendmail.mc file has me lost.
_________________
Thanks,
Dru
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri May 21, 2004 6:54 pm    Post subject: Reply with quote

Moved from OTW.
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Fri May 21, 2004 8:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
dru
n00b
n00b


Joined: 22 Apr 2004
Posts: 54
Location: use strict;

PostPosted: Sat May 22, 2004 10:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Sat May 22, 2004 11:49 pm    Post subject: Reply with quote

Right tool for the job. Don't use sendmail, use a relaying MTA like ssmtp or nbsmtp.
_________________
Pop-before-SMTP with the Gentoo Virtual Mailhosting Guide
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum