David C. Rankin wrote:
Sandy Drobic wrote:
David C. Rankin wrote:
Marcin Floryan wrote:
On 22/01/2008, David C. Rankin <[EMAIL PROTECTED]> wrote:
Listmates, Sandy,

Where do I tell postfix to deliver mail for a user to localhost and
deliver a copy to [EMAIL PROTECTED] It has to be easy, -- I hope.

I tend to use procmail in such case and setup a rule to forward the
message to another address. This can easily be done by the user
themselves in the local .procmailrc file.

Alternatively the .forward file in the user account can be used.

Another (and possibly the simplest option) is to define an alias in
the /etc/aliases file adding a similar line

user: [EMAIL PROTECTED], \user

Regards,

Thanks Marcin,

The tough part was I wanted a 'copy' forwarded to another box, not just a plain forward. Procmail was the answer.


Not necessarily. I would do this in virtual_alias_maps.

/etc/postfix/virtual:
[EMAIL PROTECTED]    [EMAIL PROTECTED], [EMAIL PROTECTED]



Hmm. Sandy,

I am trying to implement the /etc/postfix/virtual solution you suggested, but it doesn't seem to be working. Here is what I did.

(1) edit /etc/postfix/virtual, and added

me_at_rbpllc.com me_at_rbpllc.com, me_at_trinity.rbpllc.com

(2) postmap hash:/etc/postfix/virtual
(3) rcpostfix reload
(4) disabled the .procmailrc solution
(5) sent mail to me_at_rbpllc.com

Mail arrives at rbpllc.com and is delivered to rbpllc.com by NOT to trinity.rbpllc.com? Can you offer any suggestions or point out where I screwed up? It just goes to show I can screw up the simple ones...


Sandy,

For some reason there are strange greeting errors between the boxes using the virtual solution:

Jan 25 21:29:43 bonza postfix/smtp[11264]: 5FF1026D838: to=<me_at_trinity.rbpllc.com>, orig_to=<[EMAIL PROTECTED]>, relay=trinity.rbpllc.com[192.168.7.17]:25, delay=1236, delays=935/0.02/300/0, dsn=4.4.2, status=deferred (conversation with trinity.rbpllc.com[192.168.7.17] timed out while receiving the initial server greeting)

an 25 21:14:43 bonza postfix/error[11182]: 5FF1026D838: to=<me_at_trinity.rbpllc.com>, orig_to=<me_at_rbpllc.com> relay=none, delay=335, delays=335/0.02/0/0.03, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with trinity.rbpllc.com[192.168.7.17] timed out while receiving the initial server greeting)

Huh?

I tried increasing smtp_connect_timeout = 60s, but that didn't help either. Any help?


--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to