NETabuse
8th February 2007, 04:58
Hi all,
i setup using dapper isp perfect setup howto, now i followed it step by step, and the resulting setup for everything was fine, except for email. i spent a long time learning postfix configuration as best i could and from what i could tell the postfix version no longer supported the type of directives as outlined by the howto.
what ispconfig produced was local-host-names file and virtusertable file. the latter seemed ok but local-host-names is listing all the domains plus localhost.localdomain, serverhost.localdomain, localhost, serverhost. Now from reading the virtual_domains section in postfix.org, the address classess implemented in postfix v 2.x no longer let you mix default local domains (all users receiving mail under the list of hosted domains) and the virtual domains.
i changed the local-host-names file to eliminate the four domains then set virtual_alias_domains = /etc/postfix/local-host-names
then i set virtual_alias_maps = /etc/postfix/virtusertable, everything is working (after i reset my main.cf and setup the sasl auth as per the howto again, leaving out tls for the minute).
so is there a problem with the latest postfix versions configuration style and ispconfig?
my versions
ispconfig 2.2.8
ubuntu dapper (6.06)
postfix 2.2.10
now everytime i or a domain admin sets a mail user up or adds aliases etc.. makes any change on email, i have to re-edit the local-host-names to remove the four host names for local delivery.
** my new working main.cf **
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = www.mydomain.com, localhost, localhost.localdomain, localhost
relayhost =
virtual_alias_domains = /etc/postfix/local-host-names
virtual_alias_maps = hash:/etc/postfix/virtusertable
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
#SASL config
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
any ideas on how to change my postfix to work with the extra domains listed in main.cf or on how to change ispconfig to not include them in the local-host-names file would be greatly appreciated.
i setup using dapper isp perfect setup howto, now i followed it step by step, and the resulting setup for everything was fine, except for email. i spent a long time learning postfix configuration as best i could and from what i could tell the postfix version no longer supported the type of directives as outlined by the howto.
what ispconfig produced was local-host-names file and virtusertable file. the latter seemed ok but local-host-names is listing all the domains plus localhost.localdomain, serverhost.localdomain, localhost, serverhost. Now from reading the virtual_domains section in postfix.org, the address classess implemented in postfix v 2.x no longer let you mix default local domains (all users receiving mail under the list of hosted domains) and the virtual domains.
i changed the local-host-names file to eliminate the four domains then set virtual_alias_domains = /etc/postfix/local-host-names
then i set virtual_alias_maps = /etc/postfix/virtusertable, everything is working (after i reset my main.cf and setup the sasl auth as per the howto again, leaving out tls for the minute).
so is there a problem with the latest postfix versions configuration style and ispconfig?
my versions
ispconfig 2.2.8
ubuntu dapper (6.06)
postfix 2.2.10
now everytime i or a domain admin sets a mail user up or adds aliases etc.. makes any change on email, i have to re-edit the local-host-names to remove the four host names for local delivery.
** my new working main.cf **
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = www.mydomain.com, localhost, localhost.localdomain, localhost
relayhost =
virtual_alias_domains = /etc/postfix/local-host-names
virtual_alias_maps = hash:/etc/postfix/virtusertable
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
#SASL config
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
any ideas on how to change my postfix to work with the extra domains listed in main.cf or on how to change ispconfig to not include them in the local-host-names file would be greatly appreciated.