Noack, Sebastian wrote:
Couldn't I also omit the hostname or origin instead of it? And if not,
what would you propose as hostname? Something like "nohost" or does it
have to be a real hostname, which is mapped to my ip address or maybe my
ip address itself?
I used vmail.domain.com on my last build. The point being that
domain.com is virtual and if you use it as $myorigin Postfix will assume
it's local and your transport table for that domain will not work, IIRC.
Ideally yes forward and reverse DNS would match. At worst forward DNS
should actually point to this box.
Well, because of I'm not a mailhoster and need just a mailserver for the
web sites I administer completely by my own, it wouldn't be a problem to
administer the mail stuff directly in the database, but however
PostfixAdmin seems to be nice. But I think I can also set it up later,
after I followed the official Gentoo Virtual Mailhosting System with
Postfix Guide. Btw: Your howto mentions PostfixAdmin, but also doesn't
explains how to set it up. But however I will still read it,
nevertheless.
It's not really something you can add on later as PostfixAdmin uses a
different schema in order to support all the things it does. I did a
transition of 400 users by hand from the old installation to the new,
but it sucked.
Setting PostfixAdmin itself is a matter of following included how-to and
then use my Gentoo specific stuff to config everything it relies on.
If you're dead set on following the Gentoo one, this will be helpful.
Top 10 things you'll do wrong (and some extras for free) in the Gentoo
How-to
1. The Gentoo how-to does not read the virtual domains from mysql by
default. You need a line like this virtual_mailbox_domains =
proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf substituting the
Gentoo stuff or you have to add them manually to virtual_comin_maps and
restart Postfix. This is the first trade off made for Mailman.
http://forums.gentoo.org/viewtopic-t-224882-highlight-kashani+virtual.html
2. Courier-imap will throw a very unhelpful error message if the
.maildir does not exist. Always send new users a welcome mail to create
their maildir. PostfixAdmin does this by default.
3. When you using wildcard aliases you must create an alias for for each
real mailbox or it'll match the wildcard and exit before it checks the
real mailbox table. PostfixAdmin can be configured to add aliases for
all mailbox users in by default.
http://forums.gentoo.org/viewtopic-t-131618-highlight-kashani+aliases.html
4. Users must use their full email address as the username. For both
POP, SMTP-auth, and webmail. You'll repeat this a lot no matter which
system you use.
http://forums.gentoo.org/viewtopic-t-346173-highlight-kashani+virtual.html
5. When using multiple webmail client front ends like Horde, Squirrel,
and Roundcube remember to force them to use the same folder name for
Trash, Sent, etc. in case users switch around.
6. We covered the origin thing
http://forums.gentoo.org/viewtopic-t-445361-highlight-kashani+virtual.html
7. The alias table is for local system aliases, not virtual aliases
which go in virtual.
http://forums.gentoo.org/viewtopic-t-477820-highlight-kashani+virtual.html
8. /home/vmail/virt-bar.org/foo/.maildir/ <--- don't forget the
trailing slash or Postfix will write to .maildir the file and not
.maildir/ the dir.
http://forums.gentoo.org/viewtopic-t-74995-highlight-kashani+maildir+virtual.html
9. Postfix needs permission to create the .maildir/ so make sure that
you've created home dir with the right uid/gid
http://forums.gentoo.org/viewtopic-t-446763-highlight-kashani+virtual.html
10. Remove the -v from master.cf and change 450 bounce code back to 550
once it's working. Adding proxy: to your mysql statements in Postfix
also helps.
http://forums.gentoo.org/viewtopic-t-124564-highlight-kashani+aliases.html
11. The Gentoo how-to is still using Postfix 2.0 Mysql syntax. This is
going to break someday though it is rumored to still work with 2.2. 2.3
might be a different story.
http://forums.gentoo.org/viewtopic-t-392458-highlight-kashani+virtual.html
12. Squirrel and Horde can be configured with plugins to allow users to
change their passwords. This will make you life easier. PostfixAdmin has
this and additionally allows users to add forwards and vacations.
kashani
--
gentoo-user@gentoo.org mailing list