View Single Post
  #10  
Old 24th January 2007, 18:57
joshenry joshenry is offline
Member
 
Join Date: Jan 2007
Posts: 37
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
What's in /etc/postfix/main.cf (please strip out the comments)? What's the output of
Code:
hostname
and
Code:
hostname -f
? What's in /etc/hosts? Any error messages in your mail log?
Alright, here is the /etc/postfix/main.cf w/o comments. I've replaced where my hostname and domain will go but the appropriate infomation is in the file. Same with the hostname output.

Code:
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
#default_privs = nobody
myhostname = computername
#myhostname = virtual.domain.tld
mydomain = mydomain.com
#myorigin = $myhostname
#myorigin = $mydomain
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
mydestination = computername.mydomain.com, localhost, localhost.localdomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#       mail.$mydomain, www.$mydomain, ftp.$mydomain
unknown_local_recipient_reject_code = 550
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
mynetworks = 127.0.0.0/8, 10.10.10.0/24
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#relay_domains = $mydestination
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
#in_flow_delay = 1s
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
home_mailbox = Maildir/
#mail_spool_directory = /var/mail
mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20
debug_peer_level = 2
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
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.2.10/samples
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES

smtpd_sasl_local_domain = $myhostname
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
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
mailbox_command =
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
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_mailbox_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:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Output of "hostname"
Code:
# hostname
computername.mydomain.com
Output of "hostname -f"
Code:
#hostname -f
computername.mydomain.com
Output of "cat /etc/hosts"
Code:
# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
10.10.10.77             computername.mydomain.com computername
Looks like there is an error about every minute the server is up. The maillog file is littered with the following:
Code:
Jan 24 09:40:56 localhost postfix/proxymap[14078]: fatal: unsupported dictionary type: mysql
Jan 24 09:40:57 localhost postfix/smtpd[11720]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jan 24 09:40:57 localhost postfix/smtpd[11720]: warning: private/proxymap socket: service dict_proxy_open: Success
Jan 24 09:40:57 localhost postfix/cleanup[11697]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jan 24 09:40:57 localhost postfix/cleanup[11697]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Jan 24 09:40:57 localhost postfix/master[11692]: warning: process /usr/libexec/postfix/proxymap pid 14078 exit status 1
Jan 24 09:40:57 localhost postfix/master[11692]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Jan 24 09:41:57 localhost postfix/proxymap[14080]: fatal: unsupported dictionary type: mysql
Jan 24 09:41:58 localhost postfix/smtpd[11720]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jan 24 09:41:58 localhost postfix/cleanup[11697]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jan 24 09:41:58 localhost postfix/smtpd[11720]: warning: private/proxymap socket: service dict_proxy_open: Success
Jan 24 09:41:58 localhost postfix/cleanup[11697]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Jan 24 09:41:58 localhost postfix/master[11692]: warning: process /usr/libexec/postfix/proxymap pid 14080 exit status 1
Jan 24 09:41:58 localhost postfix/master[11692]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Jan 24 09:42:58 localhost postfix/proxymap[14083]: fatal: unsupported dictionary type: mysql
Jan 24 09:42:59 localhost postfix/smtpd[11720]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jan 24 09:42:59 localhost postfix/cleanup[11697]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
Jan 24 09:42:59 localhost postfix/smtpd[11720]: warning: private/proxymap socket: service dict_proxy_open: Success
Jan 24 09:42:59 localhost postfix/cleanup[11697]: warning: private/proxymap socket: service dict_proxy_open: Connection reset by peer
Jan 24 09:42:59 localhost postfix/master[11692]: warning: process /usr/libexec/postfix/proxymap pid 14083 exit status 1
Jan 24 09:42:59 localhost postfix/master[11692]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Jan 24 09:43:59 localhost postfix/proxymap[14084]: fatal: unsupported dictionary type: mysql
I'm assuming the "fatal: unsupported dictionary type: mysql" is a big part. I'm going to start searching on that and see what I find.

I think that will be all the info you'll need for now. If you need more please email me at joshenry aT gmail d0t com . Thanks!
Reply With Quote