Gavin Carr wrote:
Just wondering what people tend to use for nullmailers on their centos boxes (i.e. a minimal outgoing-only MTA)? I guess the obvious solution is a minimal postfix config, but that seems reasonably heavyweight and easy to misconfigure - is there anything lighter floating around the centos universe?
Cheers, Gavin
Gavin,
How complex are your emails?? I need to do the same thing, and can't get sendmail to email within my domain. I can send emails outside my company, but not to an internal SMTP server. I'm working on a small perl script that will do what I need - inject email into my internal SMTP server, with attachments. I need simple email notification when cronjobs finish... If you're interested, I can post this script to the list, hopefully later today.
HTH
Mark
On Fri, 2006-07-21 at 07:27 -0700, Mark Schoonover wrote:
Gavin Carr wrote:
Just wondering what people tend to use for nullmailers on their centos boxes (i.e. a minimal outgoing-only MTA)? I guess the obvious solution is a minimal postfix config, but that seems reasonably heavyweight and easy to misconfigure - is there anything lighter floating around the centos universe?
Cheers, Gavin
Gavin,
How complex are your emails?? I need to do the same thing, and can't get sendmail to email within my domain. I can send emails outside my company, but not to an internal SMTP server. I'm working on a small perl script that will do what I need - inject email into my internal SMTP server, with attachments. I need simple email notification when cronjobs finish... If you're interested, I can post this script to the list, hopefully later today.
HTH
Mark
<snip sig stuff>
I don't know if we are talking the same thing here, but I have a couple CentOS 4.3 boxes on my little LAN. I send email (IIRC - I might have to double check *if* you all are interested) between the boxes no problem. All I did was make the change that I mention (this thread, another?) that tells sendmail to listen on more than localhost (which is the only listening it does by default).
Let me know if you want me to double-check that. I'm pretty sure it works because I need it to get down the road and have all my admin stuff at one host. That's why I did it.
On Fri, 2006-07-21 at 10:40 -0400, William L. Maltby wrote:
On Fri, 2006-07-21 at 07:27 -0700, Mark Schoonover wrote:
Gavin Carr wrote:
<snip>
How complex are your emails?? I need to do the same thing, and can't get sendmail to email within my domain. I can send emails outside my company, but not to an internal SMTP server. I'm working on a small perl script that will do what I need - inject email into my internal SMTP server, with attachments. I need simple email notification when cronjobs finish... If you're interested, I can post this script to the list, hopefully later today.
HTH
Mark
<snip sig stuff>
I don't know if we are talking the same thing here, but I have a couple CentOS 4.3 boxes on my little LAN. I send email (IIRC - I might have to double check *if* you all are interested) between the boxes no problem. All I did was make the change that I mention (this thread, another?) that tells sendmail to listen on more than localhost (which is the only listening it does by default).
Let me know if you want me to double-check that. I'm pretty sure it works because I need it to get down the road and have all my admin stuff at one host. That's why I did it.
I just couldn't stand it! So I tested. FYI: local caching DNS by IPCop, nothing else fancy, std enet lan, no smtp server (special that is). As long-time residents can tell you, I disavow any knowledge... and I get it to work.
[hardtolove@wlmlfs08 ~]$ mail root@server01 Subject: Testing Let me know if this gets there. Thanks a lot . Cc: <CR> # Entered, no CC
[hardtolove@wlmlfs08 ~]$ date Fri Jul 21 10:48:06 EDT 2006
Now as root...
sh-3.00# tail -10 /var/log/maillog <snip uninteresting> Jul 21 10:47:55 wlmlfs08 sendmail[14756]: k6LEltaP014756: from=hardtolove, size=81, class=0, nrcpts=1, msgid=200607211447.k6LEltaP014756@wlmlfs08.homegroannetworking, relay=hardtolove@localhost Jul 21 10:47:55 wlmlfs08 sendmail[14757]: k6LElt3P014757: from=hardtolove@wlmlfs08.homegroannetworking, size=442, class=0, nrcpts=1, msgid=200607211447.k6LEltaP014756@wlmlfs08.homegroannetworking, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Jul 21 10:47:55 wlmlfs08 sendmail[14756]: k6LEltaP014756: to=root@server01, ctladdr=hardtolove (501/503), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30081, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k6LElt3P014757 Message accepted for delivery) Jul 21 10:47:56 wlmlfs08 sendmail[14759]: k6LElt3P014757: to=root@server01.HomeGroanNetworking, ctladdr=hardtolove@wlmlfs08.homegroannetworking (501/503), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120442, relay=server01.homegroannetworking. [192.168.2.87], dsn=2.0.0, stat=Sent (k6LEltmV002507 Message accepted for delivery) <snip more boring stuff> sh-3.00#
On the target machinei the last one is it:
[root@server01 ~]# mailx Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/root": 9 messages 1 new 9 unread U 1 root@server01.homegr Tue Jun 27 04:02 44/1584 "LogWatch for server01.homegroannetworking" <snip>
N 9 hardtolove@wlmlfs08. Fri Jul 21 10:47 20/1043 "Testing
<snip sig stuff>
I have nothing against additional round wheels, especially developed by others! :-) I *am* lazy though, so I worked *really* hard for a *long* time to find out how to do it the "easy" way, *for_my_situation*.
My previous post I mentioned (can be found in the archives) has a patch IIRC. Really simple.
HTH
On Fri, 2006-07-21 at 07:27 -0700, Mark Schoonover wrote:
Gavin Carr wrote:
Just wondering what people tend to use for nullmailers on their centos boxes (i.e. a minimal outgoing-only MTA)? I guess the obvious solution is a minimal postfix config, but that seems reasonably heavyweight and easy to misconfigure - is there anything lighter floating around the centos universe?
How complex are your emails?? I need to do the same thing, and can't get sendmail to email within my domain. I can send emails outside my company, but not to an internal SMTP server.
Sendmail should send out-of-the-box to any standard SMTP server. The only change you should have to make is if you want it to receive from other machines. The only thing that might cause a surprise is that it will send to the address it gets from DNS for the MX receiver for the domain if one exists where any other thing you might use to connect would use the DNS A record. If these are different you might be trying to send to some unreachable relay intended for outside senders. What does: dig -tMX yourdomain.com show, and can you connect to the address in the answer on port 25?
On Fri, Jul 21, 2006 at 07:27:16AM -0700, Mark Schoonover wrote:
Gavin Carr wrote:
Just wondering what people tend to use for nullmailers on their centos boxes (i.e. a minimal outgoing-only MTA)? I guess the obvious solution is a minimal postfix config, but that seems reasonably heavyweight and easy to misconfigure - is there anything lighter
How complex are your emails?? I need to do the same thing, and can't get sendmail to email within my domain. I can send emails outside my company, but not to an internal SMTP server. I'm working on a small perl script that will do what I need - inject email into my internal SMTP server, with attachments. I need simple email notification when cronjobs finish... If you're interested, I can post this script to the list, hopefully later today.
Thanks Mark. An SMTP-sending script is, as you say, a reasonably straightforward option. The only problem with it is that it doesn't have a queue if your SMTP servers or network are having problems. I'd quite like the extra security blanket of a mail queue as well.
For the record, I ended up going with Bruce Guenter's nullmailer which I found via debian - it has an i386 RPM available here:
http://www.untroubled.org/nullmailer/
It seems pretty nice - queue based, can talk to multiple upstream mailhosts using smtp or qmqp, and installation/configuration was:
yum install nullmailer # from our local yam tree echo 'mail.example.com smtp' > /etc/nullmailer/remotes # Optional echo 'example.com' > /etc/nullmailer/defaultdomain
Negatives are that it requires daemontools or a workalike, as its from the qmail world. But we were using daemontools anyway for other stuff, so that wasn't a big issue here.
Cheers, Gavin