SuSE Postfix not sending mail at all. Simple email script.
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.
SuSE Postfix not sending mail at all. Simple email script.
Hey everyone,
I have a simple script that opens a vpn connection, runs rsync, and closes the connection.
Now I want an email to be sent out everytime the backup is successful. The problem is that I am mind boggled by the documentation and howtos out there.. Thet all describe setting up a full time server. In Windoze with a 10 line vbs script I can have it chuck an email out to anyone.. In linux do I need to have it all configured? I tried using mutt/sendmail.. it just sends it to the box.. or doesn't send it at all.
Any suggestions? I tried bouncing it off of gmail to a gmail account, but no mamais whey.
You don't need a full-time server to do this, but you DO need to tell postfix or sendmail where to send the messages. Otherwise, user@domain.com will just sit on your box, since it doesn't know where to go.
It can be as simple as (sorry, not familiar with postfix since I use sendmail).
DS=mail.relay.server (or the address of that server)
That line will tell the mail service to send the messages it gets, along to that relay server, which will send it out from there. That's the only part you need to configure. You would also have to set up a Windows server, and tell it what to do with email as well, so this isn't any different.
After that, instead of 10 lines of VBS, you can use:
is what I followed for the most part.. This just seems like waaay too much work. I can't even tell if stuff si being sent now because there is nothing in my var/logs.
is what I followed for the most part.. This just seems like waaay too much work. I can't even tell if stuff si being sent now because there is nothing in my var/logs.
The outgoing stuff is going to be in your mail logs. And I'm not sure why editing a couple of config parameters in a text file is "waaaay too much work". If all you're going to do is shovel any mail messages along to another relay host, you just have to set up that one parameter. From looking at that same page, that would seem to be the "relayhost = ex-server1.napier.ac.uk" Set that to be the SMTP gateway for your ISP. That's it. You have to tell Windows where to forward messages too...
That doc set is pretty complete, but it goes into exchange servers, SASL, canonical name translation..all things that are way beyond what you're needing.
So set postfix to use a relay host, start postfix, then your mailx command will work.
Problem is I have done that relayhost. Restarted postfix after each change so thats out. It seems to me in the log that the relay isn't the problem if you look at my previous post.
I do know how to read, and I double checked that directive, but somethings off.
Heres part of the conf.
Problem is I have done that relayhost. Restarted postfix after each change so thats out. It seems to me in the log that the relay isn't the problem if you look at my previous post.
Code:
relayhost = smtp.gmail.com
mailbox_transport =
Ahh...I understand now. For me, I'm doing this on a corporate network, where my relay host doesn't require authentication, since we're going through the internal network/other proxy servers, to talk to the rest of the world.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.