Hey all, I found a way that should work, but now I get an error that says I;m not authenticating to my smtp relay server, perhaps another set of eyes will help me out. Here is my main postfix config file:
Code:
# 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/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.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 = mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = mydomain.com, localhost.mydomain.com, , localhost.localdomain,localhost
relayhost = outbound.mailhop.org:25
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtpd_sasl_security_options=
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
server = mydomain.com
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
I created a file at /etc/postfix/sasl_passwd
which has this in it:
Code:
outbound.mailhop.org:25 userid:password
To me it seems it should all work now but when I send out an email through webmail (roundcubemail) I get this:
Code:
This is the mail system at host mydomain.com.
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
<user@gmail.com>: host outbound.mailhop.org[63.208.196.179] said:
550 You must authenticate to use MailHop Outbound (in reply to MAIL FROM
command)
Reporting-MTA: dns; mydomain.com
X-Postfix-Queue-ID: 88B68160514
X-Postfix-Sender: rfc822; user@mydomain.com
Arrival-Date: Mon, 16 Feb 2009 23:20:06 -0800 (PST)
Final-Recipient: rfc822; user@gmail.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; outbound.mailhop.org
Diagnostic-Code: smtp; 550 You must authenticate to use MailHop Outbound
test
Any ideas?
Recent comments
2 days 22 hours ago
3 days 6 hours ago
3 days 9 hours ago
3 days 11 hours ago
3 days 12 hours ago
3 days 14 hours ago
3 days 15 hours ago
3 days 16 hours ago
4 days 8 hours ago
4 days 9 hours ago