Hello,
I have installed Postfix on my machine running Ubuntu 7.10. I want to be able to send mail through the console using the "mail" application. I want to use my companies SMTP mail server to send emails.
The problem is that Postfix seems to be misconfigured.
Here is a fragment of my /var/log/mail.info:
Code:
Oct 31 20:02:56 my_machine_hostname postfix/smtp[5426]: 953FA1F914E: to=<myemail@mail-server.com>,
relay=mail.company.com[x.x.x.x]:25, delay=0.05, delays=0.02/0.01/0.01/0.01, dsn=4.0.0,
status=deferred (host mail.company.com[x.x.x.x] said: 450
<my_machine_username@my_machine_hostname.company.com>: Sender address rejected: Domain not found
(in reply to RCPT TO command))
and also my /etc/postfix/main.cf
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
# 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=no
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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 = my_machine_hostname.company.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = my_machine_hostname.company.com, localhost.company.com, localhost
relayhost = mail.company.com
smtp_sasl_auth_enable = no
mynetworks = 127.0.0.0/8