본문 바로가기

Web Service/AWS

postfix를 이용하여 메일을 다른 계정으로 포워딩하기

{ 10 comments… read them below or add one }

Shoaibi June 4, 2009 at 10:24 am

hmmm, nice…

REPLY

noneck June 8, 2009 at 11:27 pm

You could also leave the original address to keep a copy locally before forwarding, or have multiple email addresses seperated by commas.

vivek@cyberciti.com vivek@cyberciti.comvivek@nixcraft.co.in

REPLY

Gopal August 13, 2009 at 9:13 am

If I do vivek@cyberciti.com vivek@cyberciti.comvivek@nixcraft.co.in, thevivek@nixcraft.co.in gets two copies of mail for every mail sent to vivek@cyberciti.com

REPLY

Mohammad Mateen October 30, 2009 at 8:46 pm

How i can get this functionality ?
—————————————————-
Directory: /home/logmon Shell: /bin/bash
Never logged in.
Mail forwarded to “|/usr/local/bin/logmon.sh”
No mail.
No Plan.
—————————————————-

Plz help

REPLY

Mohammad Mateen October 30, 2009 at 8:47 pm

In simple words i want to forward a shell user email to some script

REPLY

abi June 1, 2010 at 5:38 am

Hi,

I have added the lines as per said and is working fine. Now i want remove the forwarding, so i removed the added lines and restarted the postfix. But still the script is running. can u tell a solution to fix it?

REPLY

Anatoliy September 8, 2010 at 11:48 am

Possible you forget about

postmap /etc/postfix/virtual

after changes to the virtual config

REPLY

William October 14, 2011 at 10:41 pm

Muchas Gracias!

Even though it is old, it worked perfectly for me – tip if you never used postfix: set the mailname to something useful or google will reject the emails.

William

REPLY

Manuel December 22, 2011 at 10:18 am

Hi,

how can u configure postfix to send EVERY E-Mail to exactly ONE User on your machine?

for example:

I create a user “mailarchiv”.

Every mail which goes to the Server “mail-05″ should be saved in the Mailbox of “mailarchiv”.

Can u give me a hint?

REPLY

SAS January 16, 2012 at 1:38 pm

You had it there, didn’t you?

@yourdomain.com mailarchiv@yourdomain.com

REPLY