Prev Previous Post   Next Post Next
Old 16th October 2005, 02:55
themachine themachine is offline
Senior Member
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts

Ok, a couple of things....

First: Can you verify that you have the mysql plugin for postfix installed:

# dpkg -l postfix-mysql
If you do not, you'll need to install it if you want to use mysql:

# apt-get install postfix-mysql

Secondly: You have alot going on, and you need to narrow down your problems, solving 1 at a time. When was the last time you had a working mail server... meaning, that you could send and recieve mail with this server?

You're adding alot of non-basic features to postfix all at once. My recommendation would be to start with a cleaner config file. Put a comment before all the extra lines that aren't necessary to function, something like this:
 # See /usr/share/postfix/ for a commented, more complete version
 smtpd_banner = $myhostname ESMTP $mail_name
 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 =
 alias_maps = hash:/etc/aliases
 alias_database = hash:/etc/aliases
 myorigin = /etc/mailname
 mydestination =  localhost, localhost.localdomain
 relayhost =
 mynetworks =,,,,
 mailbox_command =
 mailbox_size_limit = 0
 recipient_delimiter = +
 inet_interfaces = all
 smtpd_sasl_local_domain =
 smtpd_sasl_auth_enable = yes
 smtpd_sasl_security_options = noanonymous
 broken_sasl_auth_clients = yes
 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination,permit
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/smtpd.key
 smtpd_tls_cert_file = /etc/postfix/smtpd.cert
 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
 home_mailbox = Maildir/

# Get rid of the Virtual User stuff until you get saslauthd working
#virtual_alias_domains =
 #virtual_alias_maps = #proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
 #virtual_mailbox_domains = proxy:mysql:/etc/postfix/
 #virtual_mailbox_maps = proxy:mysql:/etc/postfix/
#virtual_mailbox_base = /home/vmail
 #virtual_uid_maps = static:5000
 #virtual_gid_maps = static:5000
 #transport_maps = proxy:mysql:/etc/postfix/
 #virtual_create_maildirsize = yes
 #virtual_mailbox_extended = yes
 #virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/
 #virtual_mailbox_limit_override = yes
 #virtual_maildir_limit_message = "The user you are trying to reach is over quota."
 #virtual_overquota_bounce = yes
#proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mai
#lbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $
#transport_maps $mynetworks $virtual_mailbox_limit_maps
 #content_filter = amavis:[]:10024
#receive_override_options = no_address_mappings
 #disable_vrfy_command = yes
I would then start adding those features afterwards. With a basic installation of postfix, you should just be able to send email to your mail server from your mail server without authentication or anything. You can easily test it by sending an email from the command line like this:

# echo "test email" | mail
Then you want to first check your logs making sure that there were no errors, and you should be able to check your mail same as you are now (if imap/pop is configured correctly). Otherwise, you should see a message in '/home/username/Maildir/new'.

Then, once you have saslauthd working, move on to the mysql extension and virtual usermaps.

more to come...
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
Problem with WebFTP mystix General 7 7th October 2005 21:22
Problem installing ISPConfig, then with MySQL... ctroyp Installation/Configuration 7 26th September 2005 17:37
Installation problem xma Installation/Configuration 15 26th September 2005 14:22
Problem with webmail MyLinux General 10 17th September 2005 15:31
Installation problem: PHP problem? hgoor Installation/Configuration 7 21st August 2005 23:15

All times are GMT +2. The time now is 03:17.

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