View Single Post
Old 2nd July 2010, 22:28
helicoptermcbill helicoptermcbill is offline
Junior Member
Join Date: Jul 2010
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Postfix/Dovecot Virtual Domains

Because we are using so many different distro's and installations I just thought I would create a new thread. I am running a Web server, mail server, and DHCP server on Fedora 12. I configured it based on Falko's the Perfect Server but did not install ISPConfig. As of now I am running three domains on the Apache server. My mail Postfix/Dovecot mail server was running fine until I tried to configure Postfix for virtual domains. This is the primary tutorial I was using to configure Postfix for virtual domains.

here is my config file for postfix

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debugger_command =
ddd $daemon_directory/$process_name $process_id & sleep 5
debug_peer_level = 2
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.5/samples
readme_directory = /usr/share/doc/postfix-2.6.5/README_FILES
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,rejec
mynetworks = [::1]/128
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
myhostname = localhost
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_uid_maps = static:1000
virtual_gid_maps = static:1000
virtual_alias_maps = hash:/etc/postix/valias

...and here is my the log entries from /var/log/maillog I am only including the entries from the last postfix reload

Jul 2 13:33:10 web postfix/postfix-script[26458]: refreshing the Postfix mail system
Jul 2 13:33:11 web postfix/master[26229]: reload -- version 2.6.5, configuration /etc/postfix
Jul 2 13:33:39 web postfix/smtpd[26466]: fatal: open database /etc/postix/valias.db: No such file o
Jul 2 13:33:40 web postfix/master[26229]: warning: process /usr/libexec/postfix/smtpd pid 26466 exi
Jul 2 13:33:40 web postfix/master[26229]: warning: /usr/libexec/postfix/smtpd: bad command startup

It appears that the addition of virtual domains is not jiving with the smtpd and I am not sure how to fix it.


Reply With Quote
Sponsored Links