[CS-FSLUG] using postfix or sendmail to send mail

David McGlone david at dmcentral.net
Wed Mar 11 20:11:31 CDT 2009


Hi all,

I've been dabbling with postfix for a couple days and I've so far managed to 
set it up to retrieve my mail from my ISP and use procmail to filter the mail 
into the correct mailboxes.

My only problem is I can't seem to figure out how to set up SMTP to send to 
address' other than the local ones. I can send to david at buddy using sendmail, 
but I can't send to david at att.net. Every time I try to send to an outside 
address using sendmail, (/usr/sbin/sendmail) the message sits in the Mail 
Queue. But If I try to send an e-mail using postfix (/usr/sbin/postfix) I get 
an error: 

Sending failed:
Sendmail exited abnormally.
The message will stay in the 'outbox' folde…emove the message from the 
'outbox' folder.
The following transport was used:
 postfix sending

I'm wondering if there's something I missed?

I attached my main.cf file in case anyone needed a look.

Blessings,
David M.
http://www.dmcentral.net

-------------- next part --------------
# 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.

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 1m

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 = buddy.dmcghome
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = buddy.dmcghome, localhost.dmcghome, , localhost,buddy
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
mailbox_command = /usr/bin/procmail

home_mailbox = /var/spool/mail
relayhost = mail.dmcentral.net
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination
myorigin = /etc/mailname
mail_spool_directory = /var/spool/mail
maximal_queue_lifetime = 1d


More information about the Christiansource mailing list