LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Setup Postfix to relay mail


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
 
Old 11-01-2007, 09:54 PM   #2
billymayday
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
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 AM.

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