Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-24-2001, 11:31 AM
|
#1
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
|
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,
|
|
|
05-24-2001, 12:06 PM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
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.
|
|
|
05-24-2001, 08:47 PM
|
#3
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Original Poster
Rep:
|
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,
|
|
|
05-24-2001, 10:47 PM
|
#4
|
Member
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131
Rep:
|
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.
|
|
|
05-25-2001, 10:13 AM
|
#5
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Original Poster
Rep:
|
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]
|
|
|
05-25-2001, 11:07 AM
|
#6
|
Member
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131
Rep:
|
|
|
|
05-25-2001, 11:14 AM
|
#7
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Original Poster
Rep:
|
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...
|
|
|
05-25-2001, 11:47 AM
|
#9
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Original Poster
Rep:
|
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.
|
|
|
05-25-2001, 12:03 PM
|
#10
|
Member
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131
Rep:
|
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.. 
|
|
|
05-25-2001, 12:10 PM
|
#11
|
Member
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 11:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|