{ 10 comments… read them below or add one }

1 Shoaibi June 4, 2009

hmmm, nice…

Reply

2 noneck June 8, 2009

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.com, vivek@nixcraft.co.in

Reply

3 Gopal August 13, 2009
4 Mohammad Mateen October 30, 2009

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

5 Mohammad Mateen October 30, 2009

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

Reply

6 abi June 1, 2010

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

7 Anatoliy September 8, 2010

Possible you forget about

postmap /etc/postfix/virtual

after changes to the virtual config

Reply

8 William October 14, 2011

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

9 Manuel December 22, 2011

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

10 SAS January 16, 2012

You had it there, didn’t you?

@yourdomain.com mailarchiv@yourdomain.com

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 4 + 14 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: