Postfix sends mail with wrong origin domain
Hello,
The hostname of my PC is dev.ivanatora.info. It has an A record in the DNS zone for ivanatora.info. I have a Postfix installation running here. I'm sending mail to outside, but the From: field is user@ivanatora.info instead of user@dev.ivanatora.info. Here is part of main.cf: Code:
queue_directory = /var/spool/postfix Anyway I set these: Code:
myhostname = dev.ivanatora.info |
change the mydomain entry from this:
Code:
mydomain = ivanatora.info Code:
mydomain = dev.ivanatora.info |
You may want to be careful changing mydomain, since it can feed through to other parameters in your postfix config.
The other way to d othis would be to use simple address re-writing. You can use "generic" remapping for this. See http://www.postfix.org/ADDRESS_REWRI...E.html#generic |
irishbitte, that doesn't seem to work. Mail is still sent with user@ivanatora.info.
Another strange issue is this. I'm trying to send mail to Exim system. The Exim is configured with "verify callout" - it tries to call back the sender to see if local user exist at my side. Using pine and user root I'm able to send mail (there is another mail server at ivanatora.info, so the verification callout passes). But using sendmail from the command line fails. The message is delivered, but the verification callback does not pass. I'm running pine with default settings. Any idea why the sendmail binary won't work? Here is example session from maillog: Code:
May 25 11:26:44 localhost postfix/pickup[15946]: C89B61C739A: uid=0 from=<root> |
Sorry for double posting.
I've just checked with Wireshark (great debugging tool!) and I see pine sends the followin command: Code:
MAIL FROM: <root@ivanatora.info> Code:
# sendmail ivan@test-server.com Code:
MAIL FROM <root@dev.ivanatora.inf> So Postfix does really sends fine from @dev.ivanatora.info but the remote host have problems with "Temporary lookup failure". I will check the state of the MX records, becouse I have played a little with these and maybe I should wait DNS refreshing. EDIT Problem solved. Added these lines to main.cf: Code:
alias_database = hash:/etc/aliases |
Yup, these things sometimes are as small as that. Check billymaydays post regarding the MYDOMAIN setting will you?
|
All times are GMT -5. The time now is 04:34 AM. |