Latest LQ Deal: Latest LQ Deals
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 08-04-2010, 07:48 AM   #1
LQ Newbie
Registered: Mar 2009
Location: University of Queensland, Australia
Distribution: FC9, F13
Posts: 19

Rep: Reputation: 0
Postfix problems with "from" masquerade

I've just installed postifx 2.2.7 on Fedora fc13, to replace a previous perfectly working postfix 2.2.5 on fc5, copying the changes made in /etc/postfix/ as used previously. The host is on a private network from which I need to send to Internet mail hosts using a domain I own, even though it is not linked to my modem IP (stress, I have this working fine under 2.2.5/fc5)

The problem is my mail is rejected because [almost] no matter what I do, the "from" field in the sent mail picks up whatever is aliased to in /etc/hosts and *nothing* I set in the makes any difference! As this is the "local" name (eg localhost.localdomain) the destination rejects it as an unknown domain.

I can make it work by setting in /etc/hosts to the domain I own and want the mail to appear to come from, but I should not have to do this, I think. the output of postconf -n is listed below (I've changed the actual domain to to protect the innocent--namely me!) :

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_domains = localhost.localdomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mydomain =
myhostname =
mynetworks =,
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
proxy_interfaces =
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.7.0/README_FILES
sample_directory = /usr/share/doc/postfix-2.7.0/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_generic_maps = hash:/etc/postfix/generic
unknown_local_recipient_reject_code = 550
As I understant it, the myorigin and mydomain should do the job!
The smtp_generic_maps and masquerade_domains were experiments that had no effect.

Last: I notice 2.2.7 uses sendmail.postfix rather than sendmail itself (as was used in 2.2.5). On the previous setup that worked, I had a DM entry in /etc/mail/ whay may have been doing the masquerading for me.

I'm using mailx for testing and can force the "from" to the acceptable value using the -r <from> parameter, but I did not have to do this under 2.2.5/fc5 and besides, it screws up my scripts.

Last edited by Ron7; 08-05-2010 at 03:38 AM.


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
PostFix + ISPConfig mail return "unknown user" or "no such user here" Jacky444 Linux - Server 1 02-10-2010 04:21 PM
Need solution to "failed to fork PTY" and "error creating the child process" problems Gnusboy Linux - Newbie 4 01-02-2010 07:54 AM
Problems configuring "xorg.conf" with "ATI FGLRX" BlueSpirit Slackware 3 09-16-2006 02:01 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM > Forums > Linux Forums > Linux - Newbie

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

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