-   Linux - Server (
-   -   Postfix virtual accounts + shell account (

Teukka 03-06-2007 04:04 AM

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 file

virtual_mailbox_base = /home/virtual
virtual_mailbox_maps = mysql:/etc/postfix/
virtual_minumum_uid = 1001
virtual_alias_maps = mysql:/etc/postfix/
virtual_mailbox_domains = mysql:/etc/postfix/
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/
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = boo boo.
virtual_overquota_bounce = yes
transport_maps= mysql:/etc/postfix/
relay_domains = mysql:/etc/postfix/

So how can I make this happen on postfix ( 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?

Teukka 03-17-2007 06:46 PM

anybody any help... im frustrating, because i dont get that thing :/

Teukka 04-02-2007 06:32 AM

nobody has postfix installed with virtual mailboxes and vacation module working??

ramram29 04-02-2007 12:55 PM

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 12:26 AM.