-   Linux - Newbie (
-   -   Setup Postfix to relay mail (

globemast 10-31-2007 01:26 PM

Setup Postfix to relay mail

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/


Oct 31 20:02:56 my_machine_hostname postfix/smtp[5426]: 953FA1F914E: to=<>,[x.x.x.x]:25, delay=0.05, delays=0.02/0.01/0.01/0.01, dsn=4.0.0,
status=deferred (host[x.x.x.x] said: 450
<>: Sender address rejected: Domain not found
(in reply to RCPT TO command))

and also my /etc/postfix/

# See /usr/share/postfix/ 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_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 =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =,, localhost
relayhost =
smtp_sasl_auth_enable = no
mynetworks =

billymayday 11-01-2007 09:54 PM

It's your company mailserver that's rejecting your message isn't it?

I would think that whatever you have as myorigin is accepted by the server as a vavid sending domain

All times are GMT -5. The time now is 07:09 PM.