Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 email@example.com instead of firstname.lastname@example.org. Here is part of main.cf:
irishbitte, that doesn't seem to work. Mail is still sent with email@example.com.
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:
May 25 11:26:44 localhost postfix/pickup: C89B61C739A: uid=0 from=<root>
May 25 11:26:44 localhost postfix/cleanup: C89B61C739A: message-id=<20090525082644.C89B61C739A@dev.ivanatora.info>
May 25 11:26:44 localhost postfix/qmgr: C89B61C739A: from=<firstname.lastname@example.org>, size=291, nrcpt=1 (queue active)
May 25 11:26:45 localhost postfix/smtpd: connect from zen.r1servers.com[126.96.36.199]
May 25 11:26:45 localhost postfix/smtpd: warning: lookup email@example.com, NIS domain ivanatora.info, map mail.aliases: internal yp server or client error
May 25 11:26:45 localhost postfix/smtpd: NOQUEUE: reject: RCPT from zen.r1servers.com[188.8.131.52]: 451 4.3.0 <firstname.lastname@example.org>: Temporary lookup failure; from=<> to=<email@example.com> proto=SMTP helo=<zen.r1servers.com>
May 25 11:26:45 localhost postfix/cleanup: 8E2011C7397: message-id=<20090525082645.8E2011C7397@dev.ivanatora.info>
May 25 11:26:45 localhost postfix/smtpd: disconnect from zen.r1servers.com[184.108.40.206]
May 25 11:26:45 localhost postfix/qmgr: 8E2011C7397: from=<firstname.lastname@example.org>, size=766, nrcpt=1 (queue active)
May 25 11:26:45 localhost postfix/local: warning: lookup postmaster, NIS domain ivanatora.info, map mail.aliases: internal yp server or client error
May 25 11:26:45 localhost postfix/local: 8E2011C7397: to=<email@example.com>, orig_to=<postmaster>, relay=local, delay=0.01, delays=0.01/0/0/0.01, dsn=4.3.0, status=deferred (alias database unavailable)
May 25 11:26:45 localhost postfix/smtp: C89B61C739A: to=<firstname.lastname@example.org>, relay=aiperfekt.com[220.127.116.11]:25, delay=2.7, delays=2/0/0.21/0.58, dsn=4.0.0, status=deferred (host aiperfekt.com[18.104.22.168] said: 451 Could not complete sender verify callout (in reply to RCPT TO command))
Sorry for double posting.
I've just checked with Wireshark (great debugging tool!) and I see pine sends the followin command:
MAIL FROM: <email@example.com>
While sending from commandline:
# sendmail firstname.lastname@example.org
Gives the following command:
MAIL FROM <email@example.com>
Ooohh, dumb me. I had user-domain=ivanatora.info in ~/.pinerc
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.
Added these lines to main.cf: