Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users and Domains howto and the ISPConfig3 howto for Ubuntu 9.10 loubart HOWTO-Related Questions 9 2nd December 2009 16:58
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 9th May 2009 00:00
[need advice] Postfix/Dovecot (Virtual domains, users) with horde groupware webmail? MAO Installation/Configuration 4 26th August 2008 10:26
[need advice] Postfix/Dovecot (Virtual domains, users) with horde groupware webmail? MAO Server Operation 1 25th August 2008 09:48
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58

All times are GMT +2. The time now is 13:47.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.