Postfix virtual accounts + shell account
Postfix is working just fine, all mailboxes are virtual but now I need to receive mail to certain local unix account because I need to set up virtual vacation module:
"Virtual Vacation is done with a local shell account that can receive email. The email is then handled by a Perl script which sends the vacation message back to the sender."
This is the virtual part of postfix main.cf file
virtual_mailbox_base = /home/virtual
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minumum_uid = 1001
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 104857600
virtual_gid_maps = static:1001
virtual_transport = virtual
virtual_uid_maps = static:1001
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = boo boo.
virtual_overquota_bounce = yes
relay_domains = mysql:/etc/postfix/mysql_relay_domains_maps.cf
So how can I make this happen on postfix (main.cf?) I have ALL my domains etc. on MySQL database and atm my local users can't receive any mail, there has been no need for that before this...
Anybody any idea?
anybody any help... im frustrating, because i dont get that thing :/
nobody has postfix installed with virtual mailboxes and vacation module working??
I had a very similar scenario working a while back where the message was sent to the user's INBOX and then to another mailbox where a pipe would send the vacation message. It would do it once per day and for the first message from the sender. You can get a sample from the Postfix State-of-the-Art Book (google it). However, this way is very clumpsy and slow, but it's the fastest alternative with virtual accounts and Dovecot. You can use procmail with system accounts, but I don't like system accounts; I'd rather have a blackbox setup. Other MDA's have built in filtering, such as Courier, I think Qmail also. But the best one is Cyrus SIEVE - that's what I use now. It is truly the best mail filtering server out there. However, setting up Cyrus has a very steep learning curve; it's not as easy to setup as Dovecot and others; but the flexibility you get is tremendous - many commercial and non-commercial Email systems are based on Cyrus.
|All times are GMT -5. The time now is 08:13 AM.|