Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-31-2007, 01:26 PM   #1
LQ Newbie
Registered: Jun 2006
Distribution: Ubuntu 7.10
Posts: 15

Rep: Reputation: 0
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 =
Old 11-01-2007, 09:54 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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


mail, postfix, relay

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Relay in Postfix dougnc Linux - Software 14 08-01-2007 09:51 AM
Postfix to relay mail purelithium Linux - Networking 7 02-08-2006 02:01 PM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
Postfix, Bugzilla, and mail relay llamaindustries Linux - Software 0 02-07-2005 06:49 PM
PostFix Mail Relay... CRCool75 Linux - Networking 4 08-20-2004 04:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration