Okay, so I reinstalled ubuntu server with a guide I got off the net. This guide covered everything from setting up LDAP to Postfix. Although neither works yet, it has given me other ways of doing stuff and Postfix doesn't give error anymore. The new name for the server is ubuntu, and the ip now ends in .85, as uposed to web and .215 respectively.
The new postfix config file looks like this:
Code: Select all
# 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.
myhostname = ubuntu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = 3bm.co.za, ubuntu, localhost.localdomain, localhost, 3bm.local
relayhost = mail.3bm.local
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 3bm.local
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
mydomain = 3bm.local
The problem I am experiencing now though is that it sends mails from the www-data mailbox. When I send a mail using my intraweb form, it says in the log file mail has been delivered. Although it never arrives at the intended recipient. So I went into the mailbox for www-data and found a message stating that the recipient could not be found.
The intended recipient is michaell and this is the message it sends back (for security reasons, I've changed the @-symbol to (at), so it doesn't get picked up by spam bots)
Mail headers View all headers | View raw message
From MAILER-DAEMON(at)3bm.co.za (Mail Delivery System)
To www-data(at)3bm.co.za
Date 29/03/2010 16:37
Subject Undelivered Mail Returned to Sender
Message contents
This is the mail system at host ubuntu.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<michaell(at)3bm.co.za>: unknown user: "michaell"
Any help regarding this?