LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-29-2010, 11:07 PM   #1
michael.smith
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
Postfix emails send outgoing mail with wrong domain name


I just configured my first postfix mail server today. Everything is working correctly except for the fact that on all outgoing emails instead of the mail format being user@mydomain.biz it says user@hostnameofpostfixserver. I've looked everywhere I can think and I cant see where I'm substituting the host-name of the server for the domain name of my email. Where else could it be?

Below is my main.cf. I am running ubuntu 9.10.

# 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


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.

myorigin = mydomain.biz [ substituted mydomain for actual domain ]
inet_interfaces = all
myhostname = mail.mydomain.biz [ substituted mydomain for the actual domain ]
mydomain = mydoamin.local [ substituted mydomain for the actual domain ]
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = mydomain.biz, localhost.localdomain, , localhost, 1upLinux [ substituted mydomain for the actual domain ]
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +

relayhost =
inet_protocols = ipv4

Last edited by michael.smith; 01-29-2010 at 11:11 PM.
 
Old 01-30-2010, 12:08 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
could it be in
Code:
/etc/mailname
or
Code:
/etc/hostname
 
1 members found this post helpful.
Old 01-30-2010, 12:23 AM   #3
michael.smith
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
It was /etc/hostname

Thanks and take Care!
 
  


Reply



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
Postfix cant send mail in local or any outer domain vikki Linux - Server 4 07-22-2009 03:40 PM
Postfix sends mail with wrong origin domain ivanatora Linux - Software 5 05-25-2009 05:12 AM
Postfix send mail for specific domain through vpn tomazN Linux - Server 0 09-22-2008 05:25 AM
Howto Send mail to another Domain via postfix? tshrinivasan Linux - Server 2 09-16-2007 03:47 AM
Domain Routing to Postfix from Sendmail = Wrong IP information in Mail Logs! dholingw Linux - Networking 2 05-20-2004 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:47 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