Bump!!
help setting up mail server.. please.
So I am still struggling to figure this stuff out...
Seems like my configuration is good, but I can't seem to send or receive mail.
my telnet connection works: (ip address and domain name below changed)
zidaps@localhost:~$ telnet example.com 25
Trying 209.107.204.13...
Connected to example.com.
Escape character is '^]'.
220 localhost.example.com ESMTP Postfix (Ubuntu)
the ehlo bit works as well:
ehlo example.com
250-localhost.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH CRAM-MD5 DIGEST-MD5 PLAIN LOGIN NTLM
250-AUTH=CRAM-MD5 DIGEST-MD5 PLAIN LOGIN NTLM
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
What am I missing here? Why isn't the mail being sent or received from my example.com ??
This is the error I am getting from gmail:
Mail Delivery Subsystem mailer-daemon@googlemail.com to me
Delivery to the following recipient failed permanently:
info@example.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 #5.1.0 Address rejected
info@example.com (state 14).
I'm not sure what other valid info I can provide?? here is my main.cf file again:
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/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.
mydomain = example.com
myhostname = loclahost.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost $mydomain
relayhost = [smtp.broadband.rogers.com]
relay_domains = $mydestination
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
proxy_interfaces = 209.107.204.13
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
#Use these on Postfix 2.2.x only
#smtp_use_tls = yes
#smtpd_use_tls = yes
#For Postfix 2.3 or above use:
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_mailbox_domains = example.com example2.com example3.com
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailboxes
Thanks in advance for any help provided on this...
Bookmarks