Does anything need restarting for procmail changes to take effect?<div><br></div><div>Ralph</div><div><br><br><div class="gmail_quote">On Tue, Oct 2, 2012 at 3:20 PM, Root, Paul <span dir="ltr"><<a href="mailto:Paul.Root@centurylink.com" target="_blank">Paul.Root@centurylink.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, the procmail setup can filter out mail bounces and such, and also parse to only accept mail from people in a given list.<br>

<br>
You could do that in your own script as well I suppose, but why reinvent the wheel.<br>
<div class="im HOEnZb"><br>
Paul Root    - Senior Engineer<br>
Managed Services Systems - CenturyLink<br>
<br>
<br>
<br>
</div><div class="im HOEnZb">> -----Original Message-----<br>
> From: Novosielski, Ryan [mailto:<a href="mailto:novosirj@umdnj.edu">novosirj@umdnj.edu</a>]<br>
> Sent: Tuesday, October 02, 2012 2:04 PM<br>
> To: Root, Paul<br>
</div><div class="im HOEnZb">> Cc: 'Ray Reuter'; Jeremy Laidman; <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
> Subject: Re: [Xymon] xymon-mailack<br>
><br>
</div><div class="HOEnZb"><div class="h5">> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> Is there any particular reason to use procmail at all, especially if<br>
> you don't use this e-mail address to receive any other type of mail? I<br>
> just use .forward.<br>
><br>
> On 10/02/2012 03:02 PM, Root, Paul wrote:<br>
> > Do you have the procmail hooks in the postfix config files?<br>
> ><br>
> ><br>
> ><br>
> > If not, do you have your .forward setup to send stuff to procmail?<br>
> ><br>
> ><br>
> ><br>
> > Paul Root    - Senior Engineer<br>
> ><br>
> > Managed Services Systems - CenturyLink<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > *From:*Ray Reuter [mailto:<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a>] *Sent:* Tuesday,<br>
> > October 02, 2012 1:57 PM *To:* Root, Paul *Cc:* Jeremy Laidman;<br>
> > Ryan Novosielski; <a href="mailto:xymon@xymon.com">xymon@xymon.com</a> *Subject:* Re: [Xymon]<br>
> > xymon-mailack<br>
> ><br>
> ><br>
> ><br>
> > The server is accepting emails, the /var/mail/xymon has all of the<br>
> > responses I have sent back via the alerts, but they never seem to<br>
> > make it to the.procmailrc script or the Mailbox and nothing is<br>
> > logging in the procmail.log.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On Tue, Oct 2, 2012 at 1:05 PM, Root, Paul<br>
> > <<a href="mailto:Paul.Root@centurylink.com">Paul.Root@centurylink.com</a> <mailto:<a href="mailto:Paul.Root@centurylink.com">Paul.Root@centurylink.com</a>>><br>
> > wrote:<br>
> ><br>
> > What's your procmail log file say.<br>
> ><br>
> ><br>
> ><br>
> > Paul Root    - Senior Engineer<br>
> ><br>
> > Managed Services Systems - CenturyLink<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > *From:*Ray Reuter [mailto:<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a><br>
> > <mailto:<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a>>] *Sent:* Tuesday, October 02, 2012<br>
> > 11:47 AM *To:* Root, Paul *Cc:* Jeremy Laidman; Ryan Novosielski;<br>
> > <a href="mailto:xymon@xymon.com">xymon@xymon.com</a> <mailto:<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>> *Subject:* Re: [Xymon]<br>
> > xymon-mailack<br>
> ><br>
> ><br>
> ><br>
> > okay made a lot of progress now. It arrived at the server but<br>
> > never seems to either get parsed by the .procmail in the xymon home<br>
> > directory or not being processed correctly. Any ideas?<br>
> ><br>
> ><br>
> ><br>
> > Oct  2 12:33:31 localhost postfix/smtpd[31084]: connect from<br>
> > <a href="http://domain.domain.com" target="_blank">domain.domain.com</a> <<a href="http://domain.domain.com" target="_blank">http://domain.domain.com</a>>[10.1.5.176]<br>
> ><br>
> > Oct  2 12:33:31 localhost postfix/smtpd[31084]: 4F53752F9:<br>
> > client=<a href="http://domain.domin.com" target="_blank">domain.domin.com</a> <<a href="http://domain.domin.com" target="_blank">http://domain.domin.com</a>>[10.1.5.176]<br>
> ><br>
> > Oct  2 12:33:31 localhost postfix/cleanup[31021]: 4F53752F9:<br>
> > message-<br>
> id=<<a href="mailto:DC6ADFA346BED747BCA550CE3CAD9A5A12ACE3C867@domain.domain.com">DC6ADFA346BED747BCA550CE3CAD9A5A12ACE3C867@domain.domain.com</a><br>
> ><br>
> ><br>
> <mailto:<a href="mailto:DC6ADFA346BED747BCA550CE3CAD9A5A12ACE3C867@domain.domain.com">DC6ADFA346BED747BCA550CE3CAD9A5A12ACE3C867@domain.domain.com</a>>><br>
> ><br>
> > Oct  2 12:33:31 localhost postfix/qmgr[29282]: 4F53752F9:<br>
> > from=<<a href="mailto:Raymond.Reuter@domain.org">Raymond.Reuter@domain.org</a><br>
> > <mailto:<a href="mailto:Raymond.Reuter@domain.org">Raymond.Reuter@domain.org</a>>>, size=1859, nrcpt=1 (queue<br>
> > active)<br>
> ><br>
> > Oct  2 12:33:31 localhost postfix/smtpd[31084]: disconnect from<br>
> > <a href="http://domain.domain.com" target="_blank">domain.domain.com</a> <<a href="http://domain.domain.com" target="_blank">http://domain.domain.com</a>>[10.1.5.176]<br>
> ><br>
> > Oct  2 12:33:31 localhost postfix/local[31089]: 4F53752F9:<br>
> > to=<<a href="mailto:xymon@domain.domain.com">xymon@domain.domain.com</a> <mailto:<a href="mailto:xymon@domain.domain.com">xymon@domain.domain.com</a>>>,<br>
> > relay=local, delay=0.02, delays=0/0.01/0/0.01, dsn=2.0.0,<br>
> > status=sent (delivered to mailbox)<br>
> ><br>
> > Oct  2 12:33:31 localhost postfix/qmgr[29282]: 4F53752F9: removed<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On Tue, Oct 2, 2012 at 11:48 AM, Root, Paul<br>
> > <<a href="mailto:Paul.Root@centurylink.com">Paul.Root@centurylink.com</a> <mailto:<a href="mailto:Paul.Root@centurylink.com">Paul.Root@centurylink.com</a>>><br>
> > wrote:<br>
> ><br>
> > That error is postfix tell you it can't deliver.  Did you edit<br>
> > /etc/postfix/<a href="http://main.cf" target="_blank">main.cf</a> <<a href="http://main.cf" target="_blank">http://main.cf</a>> and at least set the<br>
> > 'myhostname' variable to the fqdn for your host?<br>
> ><br>
> ><br>
> ><br>
> > Paul Root    - Senior Engineer<br>
> ><br>
> > Managed Services Systems - CenturyLink<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > *From:*Ray Reuter [mailto:<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a><br>
> > <mailto:<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a>>] *Sent:* Tuesday, October 02, 2012<br>
> > 10:30 AM *To:* Jeremy Laidman *Cc:* Ryan Novosielski;<br>
> > <a href="mailto:xymon@xymon.com">xymon@xymon.com</a> <mailto:<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>>; Root, Paul *Subject:* Re:<br>
> > [Xymon] xymon-mailack<br>
> ><br>
> ><br>
> ><br>
> > Well we are getting closer. I am now able to telnet to the server.<br>
> > I tried to send mail to the server but kicked off every time i try<br>
> > to do the subject line.<br>
> ><br>
> ><br>
> ><br>
> > [root@xxxcacti2 ~]# telnet <a href="http://XXXXXXXX.xxx.com" target="_blank">XXXXXXXX.xxx.com</a><br>
> > <<a href="http://XXXXXXXX.xxx.com" target="_blank">http://XXXXXXXX.xxx.com</a>> 25<br>
> ><br>
> > Trying 10.1.72.168...<br>
> ><br>
> > Connected to <a href="http://XXXXXXXXX.xxx.com" target="_blank">XXXXXXXXX.xxx.com</a> <<a href="http://XXXXXXXXX.xxx.com" target="_blank">http://XXXXXXXXX.xxx.com</a>><br>
> > (xx.xx.x.x).<br>
> ><br>
> > Escape character is '^]'.<br>
> ><br>
> > 220 <a href="http://XXXXXXXXX.lvh.com" target="_blank">XXXXXXXXX.lvh.com</a> <<a href="http://XXXXXXXXX.lvh.com" target="_blank">http://XXXXXXXXX.lvh.com</a>> ESMTP Postfix<br>
> ><br>
> > helo <a href="http://XXXXXXXXXX.lvh.com" target="_blank">XXXXXXXXXX.lvh.com</a> <<a href="http://XXXXXXXXXX.lvh.com" target="_blank">http://XXXXXXXXXX.lvh.com</a>><br>
> ><br>
> > 250 <a href="http://XXXXXXX.lvh.com" target="_blank">XXXXXXX.lvh.com</a> <<a href="http://XXXXXXX.lvh.com" target="_blank">http://XXXXXXX.lvh.com</a>><br>
> ><br>
> > MAIL FROM: <a href="mailto:raymond.reuter@xxx.com">raymond.reuter@xxx.com</a> <mailto:<a href="mailto:raymond.reuter@xxx.com">raymond.reuter@xxx.com</a>><br>
> ><br>
> > 250 2.1.0 Ok<br>
> ><br>
> > RCPT TO: <a href="mailto:xymon@xxxxxxx.xxx.com">xymon@xxxxxxx.xxx.com</a> <mailto:<a href="mailto:xymon@xxxxxxx.xxx.com">xymon@xxxxxxx.xxx.com</a>><br>
> ><br>
> > 250 2.1.5 Ok<br>
> ><br>
> > "SUBJECT: Xymon"<br>
> ><br>
> > 221 2.7.0 Error: I can break rules, too. Goodbye.<br>
> ><br>
> > Connection closed by foreign host.<br>
> ><br>
> ><br>
> ><br>
> > I have the .procmailrc file set up as per the xymon man page, still<br>
> > not sure if the "Mailbox" is a directory or file. and the<br>
> > directory structure of the xymon home directory looks like this.<br>
> ><br>
> ><br>
> ><br>
> > drwxr-xr-x.  2 xymon xymon  4096 Oct  2 11:02 Mailbox<br>
> ><br>
> > -rw-r--r--.  1 xymon xymon     0 Oct  1 12:15 procmail.log<br>
> ><br>
> > -rwxr-xr-x.  1 xymon xymon   124 Oct  2 11:04 .procmailrc<br>
> ><br>
> ><br>
> ><br>
> > This feature is one of the most important to the company I work for<br>
> > and have been trying to get it to work for a couple of days now. We<br>
> > even added an MX record for the server so mail can be delivered to<br>
> > it directly. Telnet works locally and remote.<br>
> ><br>
> ><br>
> ><br>
> > Any recommendations would be greatly appreciated, you have all been<br>
> > a huge help so far and this monitoring tool has done wonders for<br>
> > this company.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On Tue, Oct 2, 2012 at 1:58 AM, Jeremy Laidman<br>
> > <<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a> <mailto:<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>>><br>
> > wrote:<br>
> ><br>
> > On 2 October 2012 02:46, Ray Reuter <<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a><br>
> > <mailto:<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a>>> wrote:<br>
> ><br>
> > I am using Centos 6.2<br>
> ><br>
> ><br>
> ><br>
> > By default Centos (aka Red Hat) v6 boxes run postfix (rather than<br>
> > Sendmail).<br>
> ><br>
> ><br>
> ><br>
> > During my install I do not remember installing anything as the<br>
> > mail transport, but the alerting was working right out of the box<br>
> > from day one.<br>
> ><br>
> ><br>
> ><br>
> > Initially, postfix is configured so it won't accept SMTP<br>
> > connections from off the box.  So outbound emails will get sent OK,<br>
> > but incoming emails will not get delivered to the Xymon server.<br>
> ><br>
> ><br>
> ><br>
> > Test this by attempting to telnet to the Xymon server on port 25<br>
> > from another device, such as a Windows PC, with "telnet<br>
> > <a href="http://xymon.server.name" target="_blank">xymon.server.name</a> <<a href="http://xymon.server.name" target="_blank">http://xymon.server.name</a>> 25".  If you get a<br>
> > "connection refused" or similar message, than you need to<br>
> > reconfigure Postfix to accept remote connections.<br>
> ><br>
> ><br>
> ><br>
> > I followed the man page for the mailack and created everything as<br>
> > per the instructions, but I am not even sure the mail is reaching<br>
> > the server at this point.<br>
> ><br>
> ><br>
> ><br>
> > Probably not.  Have a look at the "STANDARD_CONFIGURATION_README"<br>
> > file that came with Postfix for instructions on setting things up,<br>
> > particularly the "Postfix on a local network" section.<br>
> ><br>
> ><br>
> ><br>
> > J<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
> - --<br>
> - ---- _  _ _  _ ___  _  _  _<br>
> |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer<br>
> |$&| |__| |  | |__/ | \| _| |<a href="mailto:novosirj@umdnj.edu">novosirj@umdnj.edu</a> - <a href="tel:973%2F972.0922" value="+19739720922">973/972.0922</a> (2-0922)<br>
> \__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark<br>
> -----BEGIN PGP SIGNATURE-----<br>
> Version: GnuPG v1.4.11 (GNU/Linux)<br>
> Comment: Using GnuPG with Mozilla - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
><br>
> iEYEARECAAYFAlBrOrkACgkQmb+gadEcsb7uegCeNo6Nk91cczZMee5TWkRzdEF6<br>
> /hMAn0HZrjiolCwQnWrkHAacw72sXCm+<br>
> =PD3/<br>
> -----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>