Setting up Postfix E-Mail for Multiple Virtual Domains

I currently run a SuSe Linux Server (V9.0) with Postfix, AmaViS & Spamassin. I have started hosting multiple web sites via Apache's virtual domain configuration and would like to offer e-mail support for those virtual domains as well. Anyone have the steps to do this under Postfix v2.0.14?
LVL 29
Michael WorshamInfrastructure / Solutions ArchitectAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ppfoongCommented:

Here is a detailed guide, suitable for most major Linux distro.
http://www.khoosys.net/single.htm?ipg=1563

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael WorshamInfrastructure / Solutions ArchitectAuthor Commented:
The server environment has already been established and already home to several accounts. Having to reinstall Postfix and any portions of it would not be beneficial to the service I already offer. I don't offer webmail nor do I want to at this time.

I am looking for steps not requiring me to reinstall Postfix nor use a database to control the domains.  I already took a look at http://www.postfix.org/VIRTUAL_README.html, but it really doesn't show good examples of a straight virtual domain setup.
0
ppfoongCommented:

You don't have to reinstall anything. You just need to make reference to the various configuration in the tutorial and configure yours. The tutorial shown above is a step-by-step guide.

You need courier-imap or other pop3 package that supports virtual domain.

Amavis + Spamassassin + Clamav is on another page of that site. Check the links on the left.

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Michael WorshamInfrastructure / Solutions ArchitectAuthor Commented:
It seems those instructions are geared to using the MySQL database for aliases, Cyrus-SASL for SMTP-Auth and SquirrelMail. I am looking to see what I need to do to alter my main.cf and the /etc/postfix/virtual code to handle virtual domains.

If I have to resort to having to have Postfix + MySQL + Cyrus-SASL + Courier-IMAP (as per those instructions) then I just won't offer e-mail for virtual domains and keep it as is. I just wanted to see if its possible w/o having to add in more packages and do a little bit of shell script work to have it operational.

-- Michael
0
ppfoongCommented:

You do not need MySQL and can make use of the system account. A few years ago I have tried that, and unfortunately, the character "@" is not accepted as part of a user account, so cannot create user account using their email address. Need to substitute "@" with something else, such as "#", and tweaking around to get the mailbox finally working. MySQL is used, for easy administration, scalablity and interoperability. You can make use of the same MySQL server for dynamic web content too. Anyhow, it can be done without MySQL, only more complicated, more difficult to maintain.

If you do not have a POP3 server that support virtual domain, how the user read their mail? So Courier-IMAP is in the picture. You need to authenticate the user when they are using SMTP as well as POP3/IMAP, and it is better for them to authenticate using the same piece of information (same userid and password), therefore, SASL is in the picture. If you find another simpler way for this, then, you don't need SASL.

You can just ignore the webmail part, it is completely optional.


0
Michael WorshamInfrastructure / Solutions ArchitectAuthor Commented:
After reading all of the above, I believe the only way to win would be to start over from scratch. The option in the weblink given above really doesn't allow for exceptions to the rule for setting up virtual domains for e-mail accounts. Sort of sucks really, knowing that you cant just modify a couple of files and have it work -- still with ease of not using MySQL, SASL, etc. It seems Postfix has to rely on 3rd party applications to intergrate it for virtual domains for ease of use and setup.

I am going to keep the question open to see if someone else has a better method of not having to rely on additional 3rd apps to be installed for virtual domain setups (i.e. POP3, IMAP, etc).
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.