Re: [gentoo-user] myhostname and mydomain in /etc/postfix/main.cf on a vhost

2006-08-28 Thread kashani

Noack, Sebastian wrote:

Hi,

I'm currently setting up a mail server according to
http://www.gentoo.org/doc/en/virt-mail-howto.xml and I don't understand
Code Listing 2.2.

myhostname = $host.domain.name
mydomain = $domain.name

If this suppose to be a configuration for virtual hosts, than I don't
have a specific hostname or domain. I just have hostnames which are also
the domains for each virtual host. But they do I already specify
according to Code Listing 10.9 in the virtual_mailbox_domains variable
in /etc/postfix/main.cf.

Can maybe somebody help me with this configuration?

Regards
Sebastian Noack



Your domain can be any one of your domains. Your hostname should not 
match anything in your virtual file. When you set your origin use the 
hostname and not the domain. That'll make things less likely to screw up.


soapbox
That how-to you're following sucks unless you're dead set on giving all 
accounts virtual mailman support. I can't say mine is written any 
better, but it will give you a much better system when you're done. 
Manually adding users via raw SQL will annoy you to no end after two weeks.

http://gentoo-wiki.com/HOWTO_Setup_a_Virtual_Postfix/Courier_Mail_System_with_PostfixAdmin

and hey the dev of Postfixadmin even reads the wiki.
http://forums.high5.net/viewtopic.php?t=8

kashani, thinking it's time to go freshen up his how-to again.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] myhostname and mydomain in /etc/postfix/main.cf on a vhost

2006-08-28 Thread Noack, Sebastian
 Your domain can be any one of your domains. Your hostname should not
 match anything in your virtual file. When you set your origin use the
 hostname and not the domain. That'll make things less likely to screw
up.

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?

 soapbox
 That how-to you're following sucks unless you're dead set on giving
all
 accounts virtual mailman support. I can't say mine is written any
 better, but it will give you a much better system when you're done.
 Manually adding users via raw SQL will annoy you to no end after two
 weeks.
 http://gentoo-

wiki.com/HOWTO_Setup_a_Virtual_Postfix/Courier_Mail_System_with_PostfixA
dm
 in

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.

Regards
Sebastian

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] myhostname and mydomain in /etc/postfix/main.cf on a vhost

2006-08-28 Thread kashani

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