Add Alias To Script

Pointing an email address to a server script

If you have a script that receives and parses incoming email you may need to setup an alias to point to your script. There are two steps involved.

1. Add your alias to the postfix aliases file:

Open file: /path/to/zimbra/postfix/conf/aliases

Add your alias:

support root, |/path/to/script.pl

2. Edit the main master.cf file to include the server ip address:

Open file: /path/to/zimbra/postfix/conf/master.cf

Find the line that reads: "-o mynetworks=127.0.0.0/8"

Add your server's ip address to the end: "-o mynetworks=127.0.0.0/8,192.168.1.1" where 192.168.1.1 is the IP address of your mail server.

You will also need to comment the line just above this line so it reads: " #-o mynetworks_style=host"

That is it. You should now just need to restart zimbra and be good to go. You may also need to run "/path/to/zimbra/postfix/sbin/newaliases" Keep in mind if your mail server is named "mail.domain.com" you will need to use the full server address including "mail." even if you normally do not.

Thank you to Mike Bradley of the Zimbra Forums for figuring this out.

See http://www.zimbra.com/forums/administrators/9986-urgent-etc-alias-configuration-after-upgrade.html for another (and probably correct solution) to this problem.

Verified Against: unknown Date Created: 1/25/2007
Article ID: https://wiki.zimbra.com/index.php?title=Add_Alias_To_Script Date Modified: 2015-03-24



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search