[CentOS] Procmail recipie to forward via smtp

Jason Pyeron jpyeron at pdinc.us
Mon Jan 17 15:56:13 UTC 2011


> -----Original Message-----
> From: L A Hurst
> Sent: Monday, January 17, 2011 10:52
> To: CentOS mailing list
> Subject: Re: [CentOS] Procmail recipie to forward via smtp
> 
> -----Original Message-----
> From: Jason Pyeron 
> Reply-To: CentOS mailing list <centos at centos.org>
> Date: Mon, 17 Jan 2011 15:37:25 +0000
> To: 'CentOS mailing list' <centos at centos.org>
> Subject: [CentOS] Procmail recipie to forward via smtp
> 
> >I was in a hurry to forward email to our internal exchange server 
> >before my vaction, the best way I found after too much 
> googling was to 
> >use 
> http://www.ibiblio.org/pub/Linux/system/mail/smtpsend-1.02.tgz and
> >
> >:0
> >|smtpsend -to=user at pdinc.us -server=exchange
> >
> >Was there a way to do this without smtpsend?
> >
> >-Jason
> >
> >
> >From the procmailrc man page:
> The action line can start with the following characters:
>      !      Forwards to all the specified mail addresses.
> 
> 
> So your recipe could probably be replaced by:
> :0
> ! user at pdinc.us

No, as that would loop back. I should have been more clear. The internal
exchange/blackberry SMTP server shares the same domain space and does not have
public MX records. The .procmailrc is on the publi mail server.

> 
> Although there is no obvious way to specify the smtp server 
> (I assume it either sends via localhost or, more likely, uses 
> the MX from dns for the target domain).
> 

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 





More information about the CentOS mailing list