Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wrong host when sending mail. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
d99ma
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 148
Location: Lund, Sweden

PostPosted: Tue Nov 09, 2004 10:25 am    Post subject: Wrong host when sending mail. [SOLVED] Reply with quote

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
View user's profile Send private message
suso
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2004
Posts: 137
Location: Bloomington, IN

PostPosted: Wed Nov 10, 2004 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
d99ma
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 148
Location: Lund, Sweden

PostPosted: Wed Nov 10, 2004 10:41 pm    Post subject: Reply with quote

Ah, stupid me.

Thanks alot for the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum