View previous topic :: View next topic |
Author |
Message |
d99ma Tux's lil' helper
Joined: 21 Jul 2003 Posts: 148 Location: Lund, Sweden
|
Posted: Tue Nov 09, 2004 10:25 am Post subject: Wrong host when sending mail. [SOLVED] |
|
|
Hi
I have an emailserver at a computer with the name acer.mydomain.org
But when i send mail from it I wan't the mail to come from @mydomain.org.
So I put the following in my /etc/postfix/main.cf
myhostname=acer.mydomain.org
mydomain=mydomain.org
myorigin=mydomain.org
But when i send an email it looks like this:
Code: |
X-Apparently-To: myuser@yahoo.se via 66.218.92.42; Tue, 09 Nov 2004 01:51:26 -0800
X-Originating-IP: [XXX.XXX.XXX.XXX]
Return-Path: <myuser@mydomain.org>
Received: from XXX.XXX.XXX.XXX (EHLO acer.mydomain.org) (XXX.XXX.XXX.XXX) by mta372.mail.scd.yahoo.com with SMTP; Tue, 09 Nov 2004 01:51:26 -0800
Received: by acer.mydomain.org (Postfix, from userid 1000) id C7F72DD9E8; Tue, 9 Nov 2004 10:41:55 +0100 (CET)
Date: Tue, 9 Nov 2004 10:41:55 +0100
From: myuser@acer.mydomain.org
To: myuser@yahoo.se
Subject: Testing
Message-ID: <20041109094155.GA17032@acer.mydomain.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6i
Content-Length: 7
Test
|
And some servers won't even recieve the mails from me complaining that:
Code: |
450 <acer.mydomain.org>: Helo command rejected: Host not found (in reply to RCPT TO command)
|
What do I need to correct?
Last edited by d99ma on Wed Nov 10, 2004 10:42 pm; edited 1 time in total |
|
Back to top |
|
|
suso Tux's lil' helper
Joined: 08 Apr 2004 Posts: 137 Location: Bloomington, IN
|
Posted: Wed Nov 10, 2004 8:14 pm Post subject: |
|
|
Setting the From: line is the job of the mail client, not the server that you are sending the message through. You'll notice that the Return-Path (which is set by the server) is what you want it to be. What client are you using? If its something like pine then you need to user-domain to be mydomain.org. If its mutt then set "my_hdr From: <myuser@mydomain.org>" _________________ Use saferdomainsearch.com to safely search for domain availability. |
|
Back to top |
|
|
d99ma Tux's lil' helper
Joined: 21 Jul 2003 Posts: 148 Location: Lund, Sweden
|
Posted: Wed Nov 10, 2004 10:41 pm Post subject: |
|
|
Ah, stupid me.
Thanks alot for the help! |
|
Back to top |
|
|
|