LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-24-2001, 11:31 AM   #1
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Rep: Reputation: 15
Question


Ok. I've tried till I'm blue in the face and still haven't succeeded. I'm new to setting up sendmail. Never done it before now (never set-up SMTP mail on anything before.)

I have a 'dameon' user named duser. I want mail destined for mydomain.com that duser sends to have a from line of admin@mydomain.com, can some one please help!!!! I'm using Mandrake 8.0.

Thanks,
 
Old 05-24-2001, 12:06 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Locate /etc/sendmail.cf (thats the config)
Locate comment called "# Masquerading rules"
Now Im not sure how duser sends it mail (localhost or domain) so we better have em change both.
Add to look something like this:

# Masquerading rules
S1
Rduser<@localhost> $@ admin < @ mydomain.com>
Rduser<@localhost.> $@ admin < @ mydomain.com.>
Rduser<@mydomain.com> $@ admin < @ mydomain.com>
Rduser<@mydomain.com.> $@ admin < @ mydomain.com.>

Test.
HTH.
 
Old 05-24-2001, 08:47 PM   #3
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by unSpawn
Locate /etc/sendmail.cf (thats the config)
Locate comment called "# Masquerading rules"
Now Im not sure how duser sends it mail (localhost or domain) so we better have em change both.
Add to look something like this:
# Masquerading rules
S1
Rduser<@localhost> $@ admin < @ mydomain.com>
Rduser<@localhost.> $@ admin < @ mydomain.com.>
Rduser<@mydomain.com> $@ admin < @ mydomain.com>
Rduser<@mydomain.com.> $@ admin < @ mydomain.com.>
Test.
While I wasn't able to find the comment line you mentioned or the S1 set of rules I was able to take the info you gave me and modify my sendmail.cf's SCanonify2 ruleset to turn duser into admin. Thank you very much. That was for work. I'll post another question (for home here in a bit)

Thanks,
 
Old 05-24-2001, 10:47 PM   #4
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
Got 1 name for you.. Postfix
URL: http://www.postfix.com/

It ownz Sendmail!

It took me 5 min to set it up (DL the RPM)
Think I changed 3-4 settings in the cfg file, which explained things quite nicely..

A test from the net showed no holes for spammers..
Nice and smooth program.
Also set up it's own postfix user to run the prg..
Almost as nice as installing a Windows app.

 
Old 05-25-2001, 10:13 AM   #5
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Q25
Got 1 name for you.. Postfix
URL: http://www.postfix.com/

It ownz Sendmail!

It took me 5 min to set it up (DL the RPM)
Think I changed 3-4 settings in the cfg file, which explained things quite nicely..

A test from the net showed no holes for spammers..
Nice and smooth program.
Also set up it's own postfix user to run the prg..
Almost as nice as installing a Windows app.
Ok, then why can't if figure out how to get the damn thing to translate
user1 -> someotheruser@thisonedomain.com
user1 -> someotheruser@yahoo.com
user2 -> yetanotheruser@myisp.com
user2 -> stillotheruser@yahoo.com
and vice versa?

In other words, my wife and I have two e-mail addresses I'd like postfix to take mail 'written' using local mail tools, and re-address (the From) to the appropriate e-mail address.

Thanks,


[Edited by gboutwel on 05-25-2001 at 12:04 PM]
 
Old 05-25-2001, 11:07 AM   #6
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
I think this is what you're looking for?

http://www.postfix.com/faq.html#masquerade
 
Old 05-25-2001, 11:14 AM   #7
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Q25
I think this is what you're looking for?

http://www.postfix.com/faq.html#masquerade
Maybe I miss read that URL, but it says it's intended only for mail gateways. This isn't a mail gateway... This is an single home machine with dial-up access to the internet...
 
Old 05-25-2001, 11:41 AM   #8
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
hmm.. maybe this can be used?
http://www.redhat.com/support/docs/f...-FAQ/x133.html

It's also explained how to set it up for Dial-up elsewhere in that FAQ..
 
Old 05-25-2001, 11:47 AM   #9
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Q25
hmm.. maybe this can be used?
http://www.redhat.com/support/docs/f...-FAQ/x133.html

It's also explained how to set it up for Dial-up elsewhere in that FAQ..
I'll give it a look and make some attempts when I get home this evening. In case you haven't figured it out yet.. I have a linux box at work that I'm setting-up... it's using sendmail, and at home I've had Linux for quite sometime now, only never really set-up mail (always used netscape's mail program, or not done mail form Linux) I opted for postfix just to see what it was like/how to work with it.
 
Old 05-25-2001, 12:03 PM   #10
Q25
Member
 
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131

Rep: Reputation: 16
Haven't worked that much with Linux. So I only know about what I've come across while setting up 1 server with Inet conn. for 50 persons.. And I found Postfix to be much easier to setup than Sendmail... Have used Sendmail before, but now I changed it.. Mainly because Postfix should be more secure..
 
Old 05-25-2001, 12:10 PM   #11
gboutwel
Member
 
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Q25
Mainly because Postfix should be more secure..
This machine is sitting behind a proxy/firewall, so I'm not too worried about security, except to keep-up with the usuall security/program updates...

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 07:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 02:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 01:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration