Linux - NetworkingThis 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.
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.
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.
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:
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)
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.
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.
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...
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.
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.