Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Somehow I can't see this forest, there are way too many trees in the way!
I have a Fedora 6 system running as a web server and use vnc from my desktop to 'manage' it.
What I would like to do is to have any locally generated email (eg: to root from cron jobs) to get forwarded to an external mail address. That way I can process (and automate) all my email from one place.
The linux system is running sendmail, although I have not done any configuration to it yet.
I have found one other similar request doing a search, but it did not contain a definitive answer.
Unfortunately, using an alias does not do the same job as forwarding.
When the message gets routed to the new destination, it still is structured with the original address. Since this is a system on my internal network, it has no 'real-world' in DNS etc and the smtp server gets upset with it, believing it to be sent with a spoofed address, which technically it is.
SMTP AUTH solves that problem here. I need to keep the original 'From' addresses so I can see at a glance when mail arrives from one of my servers...
I don't use .forward files, but it looks like there's plenty of info on google, e.g. http://www.physics.ubc.ca/computer/e...tforward.phtml. Did you mean that you've tried this and it didn't work? Or that you want to be modifying mail headers as part of the process?
The .forward approach, in essence, is identical to the alias aproach, as far as I can figure.
But I could not get .forward to work with root, even after removing any alias settings.
The kind of forwarding I am looking for would create a new header and textually retain the original header at the top of the message. This way there is no spoofing going on.
Could you explain your reference to SMTP AUTH?
In the meantime, I am trying to search out all the default references to root and replace where possible. Not so easy when navigating thu the system seems 'foreign' to me.
I usually have my systems set up so that /etc/mail/aliases specifies that root's mail goes to an ordinary user's account. I've never had problems using the aliases database to send ordinary users' mail off-site. I haven't tried changing the sender email address as you're looking to do because in the set up I have here that would be spoofing (ie changing the sender address to make the receiving server think it was OK).
There's a very good reference for SMTP AUTH here at http://www.linuxquestions.org/questi...d.php?t=224543. I've used it and recommend it. Although the installation sections are Slackware specific, the configuration sections seem generic.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.