Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-06-2007, 04:04 AM   #1
LQ Newbie
Registered: Aug 2003
Location: Finland
Distribution: Debian, Fedora, FreeBSD, OpenBSD
Posts: 22

Rep: Reputation: 15
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?

Last edited by Teukka; 03-07-2007 at 03:22 AM.
Old 03-17-2007, 06:46 PM   #2
LQ Newbie
Registered: Aug 2003
Location: Finland
Distribution: Debian, Fedora, FreeBSD, OpenBSD
Posts: 22

Original Poster
Rep: Reputation: 15
anybody any help... im frustrating, because i dont get that thing :/
Old 04-02-2007, 06:32 AM   #3
LQ Newbie
Registered: Aug 2003
Location: Finland
Distribution: Debian, Fedora, FreeBSD, OpenBSD
Posts: 22

Original Poster
Rep: Reputation: 15
nobody has postfix installed with virtual mailboxes and vacation module working??
Old 04-02-2007, 12:55 PM   #4
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-Server account creation or Domain accounts antony.booth Linux - Enterprise 5 01-17-2007 04:58 PM
Postfix -> Virtual Email Accounts cccc Linux - General 6 09-22-2006 03:04 AM
VIrtual accounts nderitualex Linux - Newbie 1 03-21-2005 03:39 AM
Virtual accounts nderitualex Linux - General 1 03-21-2005 03:04 AM
Virtual accounts in Postfix technochef Linux - Software 2 10-25-2004 04:12 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration