Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Without changes to any files in /etc/mail, other than adding root to trusted-users, I can type the following at the command line (as root) and mail is delivered:
The message is sent with no errors in my /var/log/maillog.
My system messages are still going to root on the host rather than being forwarded to the external address. I want to send messages related to cron and at to that external account. Is there additional set up in the /etc/aliases file that I am missing?
I don't know sendmail well, but what does the maillog say?
Stated that nothing was logging to /var/log/maillog
Quote:
The message is sent with no errors in my /var/log/maillog.
What happens if you check the mail queue?
mailq
Shouldn't you be sending to root instead of your email address to test the forwarding to your ISP account? Also, is this server setup on a DHCP connection? If so, it could possibly be your ISP blocking this email.
And why are you running ctrl-d at the end.. doing something like this should email without problems:
Code:
mail -s "My Subject" root@localhost
<body text here>
.
Sending email to root, just goes to root not the alias.
Well, sending externally from root works okay, however system messages (ssh logs, etc.) are not being forwarded to my external mail but still going to root's mailbox.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.