These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Postfix Config Issue ... Ubuntu 14.04 on the new forum.
I am using Ubuntu 14.04 Distro and the repo install with LAMP, Webmin, Virtualmin. For some reason the Postfix install has never worked properly, I can't send or receive. It's been a number of years since I set this up and everything was manual at that time (at least 10 years ago). I am including my main.cf below
# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #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 readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = $myhostname, $mydomain, localdomain, localhost, localhost.localdomain, localhost mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME mailbox_size_limit = 0 recipient_delimiter = + virtual_alias_maps = hash:/etc/postfix/virtual sender_bcc_maps = hash:/etc/postfix/bcc home_mailbox = Maildir/ 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 allow_percent_hack = no myorigin = $mydomain sender_dependent_default_transport_maps = /etc/postfix/dependent notify_classes = bounce, 2bounce, delay, resource milter_default_action = accept milter_protocol = 2 smtpd_milters = inet:localhost:8891 non_smtpd_milters = inet:localhost:8891 mynetworks_style = subnet
when I run telnet localhost 143 I get:
Trying ::1... Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused
Here is my iptables -L -n
iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:20000 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:993 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:143 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:20 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
I'm pretty sure I am missing something simple but I am missing it none the less.
Any assistance would be appreciated.
Mail.log
Here is my mail.err log
I'm running out of ideas. Any help would be much appreciated.
Howdy,
Try commenting out this line in your main.cf file:
sender_dependent_default_transport_maps = /etc/postfix/dependent
After that, restart Postfix with this command:
/etc/init.d/postfix restart
Once you do that, does Postfix work properly for you?
-Eric
That seemed to fix it. Thanx!!!!
Solved the last of the really big issues for me.
RESOLVED
Nature of the issue: You haven't given postfix a map/db type, it has no idea how to read the file.
Your config file reads
'sender_dependent_default_transport_maps = /etc/postfix/dependent'
this is incorrect.It should read
'transport_maps = hash:/etc/postfix/dependent'
The word hash tells postfix what database type to reference when reading this file.
Assuming the content of your transport file is correct, do the following.
1. Edit the original line to match the one above.
2. Now create the new "Transport database" by issuing the following command,
postmap hash:/etc/postfix/transport
This will create the needed database file: /etc/postfix/transport.db
3. Now restart postfix