Hello,
I went from a 32 bit 10.04 Ubuntu on an old pentium to a new server with Ubuntu 12.04 64 bit and I backed up and restored, but I made a few mistakes before I realized email didn’t work.
The FQDN didn’t take, the server name is different than the old one, and I accidentally made the wrong username for one of my restored domains. I can not send or receive emails at all. I have 2 domains from the old server and a new domain for the FQDN on the new server (not important).
I use DynDNS for all 3 domain names. 2 of them are paid for and the FQDM is a free one (dynamic dnsing, that is).
I had used a gmail account previously to send and receive Pop3 mail but I see no linking at all at this time. I would like to go back to that arrangement (not a 2 factor authenticated email)
postconf -n
2bounce_notice_recipient = admin@email.com
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
biff = no
bounce_notice_recipient = admin@email.com
broken_sasl_auth_clients = yes
command_time_limit = 100s
config_directory = /etc/postfix
delay_notice_recipient = admin@email.com
error_notice_recipient = admin@email.com
home_mailbox = Maildir/
ignore_mx_lookup_error = yes
inet_interfaces = all
inet_protocols = all
luser_relay = admin@email.com
mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
maximal_backoff_time = 400s
maximal_queue_lifetime = 2d
minimal_backoff_time = 300s
mydestination = localdomain, localhost.home, localhost, $mydomain, $myhostname, mail.website1.com, mail.website2.com, MyHostname, My.FQDM.com, MyHostname.website2.com, www.website1.com, website1.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
queue_minfree = 8000
queue_run_delay = 30s
readme_directory = no
recipient_delimiter = +
relay_transport = smtp
relayhost =
sender_bcc_maps = hash:/etc/postfix/bcc
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated rejec t_unauth_destination check_relay_domains permit_inet_interfaces permit_mx_backup
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous noplaintext
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = no
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_limit = 0
Here are some log entries for sample mail errors:
Sep 21 21:34:21 MyHostname postfix/local[13274]: fatal: main.cf configuration error: mailbox_size_limit is smaller than message_size_limit
Sep 23 05:20:31 MyHostname dovecot: imap(NewUser): Error: stat(/home/NewUser/Maildir/.spam/tmp) failed: Permission denied (euid=1008(NewUser) egid=1007(NewUser) missing +x perm: /home/NewUser/Maildir/.spam, dir owned by 1009:1007 mode=0700)
(all mail folders follow, similar error)
Sep 23 05:21:03 MyHostname postfix/smtpd[8232]: fatal: no SASL authentication mechanisms
Sep 23 05:54:13 MyHostname postfix/postalias[16054]: fatal: open /etc/postfix/aliases: No such file or directory
Sep 23 07:05:05 MyHostname postfix/postmap[4426]: fatal: usage: postmap [-Nfinoprsvw] [-c config_dir] [-d key] [-q key] [map_type:]file…
Sep 23 07:07:36 MyHostname postfix/postmap[4664]: fatal: open /etc/postfix/sender_relay: No such file or directory
Anyone have ideas where to start? I have been working on this for days and I am missing some critical understanding somewhere. I would appreciate any assistance
(all dbs and websites are functioning fine as far as I can tell. its just email that is the problem)