#1  
Old 6th September 2011, 17:57
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 15 Times in 13 Posts
Default Mail headers

When a client received an email, gets these headers

Code:
Received: from server.domain.com ([127.0.0.1])
	by localhost (server.domain.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id CBIqjlBhghpF for <client@clientdomain.com>;
	Tue,  6 Sep 2011 16:13:09 +0200 (CEST)
Received: from serv22.sqp.fr (unknown [213.30.188.22])
	by server.domain.com (Postfix) with ESMTP id 5408A94009F
	for <client@clientdomain.com>; Tue,  6 Sep 2011 16:13:09 +0200 (CEST)
And when client sends an email, the destination gets these headers

Code:
Received: from server.domain.com ([127.0.0.1])
	by localhost (server.domain.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id eF6U-RNt8eNa for <destination@gmail.com>;
	Tue,  6 Sep 2011 17:44:10 +0200 (CEST)
Received: from [192.168.200.99] (13.Red-83-179-128.staticIP.rima-tde.net [83.179.128.13])
	(Authenticated sender: client@clientdomain.com)
	by server.domain.com (Postfix) with ESMTPSA id 96B3994009B
	for <destination@gmail.com>; Tue,  6 Sep 2011 17:44:10 +0200 (CEST)
How I can change "server.domain.com" per "mail.clientdomain.com" ? And 127.0.0.1 per client's asigned ip ?
Reply With Quote
Sponsored Links
  #2  
Old 7th September 2011, 09:42
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,042
Thanks: 826
Thanked 5,384 Times in 4,231 Posts
Default

Quote:
How I can change "server.domain.com" per "mail.clientdomain.com" ?
Change bthe hostname of the server in /etc/hostname, /etc/postfix/main.cf, /etc/mailname and /etc/hosts

Quote:
And 127.0.0.1 per client's asigned ip ?
This cant be changed.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
mentes (7th September 2011)
  #3  
Old 7th September 2011, 10:23
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 15 Times in 13 Posts
Default

Quote:
Originally Posted by till View Post
Quote:
Originally Posted by mentes View Post
How I can change "server.domain.com" per "mail.clientdomain.com" ?
Change bthe hostname of the server in /etc/hostname, /etc/postfix/main.cf, /etc/mailname and /etc/hosts
If I do that, all clients will show they send through server.domain.com and what I would like is each client shows his domain.

mail.clientdomain.com where "clientedomain" change for each client


Quote:
Originally Posted by till View Post
Quote:
Originally Posted by mentes View Post
And 127.0.0.1 per client's asigned ip ?
This cant be changed.
If I change these values in /etc/postfix/main.cf can I break something?

mynetworks = 127.0.0.0/8 mynetworks = 11.22.33.44/32
content_filter = amavis:[127.0.0.1]:10024 content_filter = amavis:[11.22.33.44]:10024

where 11.22.33.44 is server's public main ip
Reply With Quote
  #4  
Old 7th September 2011, 11:05
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,042
Thanks: 826
Thanked 5,384 Times in 4,231 Posts
Default

Quote:
If I do that, all clients will show they send through server.domain.com and what I would like is each client shows his domain.mail.clientdomain.com where "clientedomain" change for each client
Thats not supported by postfix as far as I know. A mailserver uses its own server name in email, thats the case for all mail systems. It does not use the virtual domain names of clients.

Quote:
If I change these values in /etc/postfix/main.cf can I break something?

mynetworks = 127.0.0.0/8 mynetworks = 11.22.33.44/32
content_filter = amavis:[127.0.0.1]:10024 content_filter = amavis:[11.22.33.44]:10024

where 11.22.33.44 is server's public main ip
I wont do that if I were you. This would open up the amavis spam filter so that it could be used to inject mails into your server from external sources. spam filter proxies always run on port 127.0.0.1 to prevent that, thats not specific to ispconfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 12:23
Why did Squirrelmail, Dovecot/IMAP & Outbound mail break? websissy Technical 4 29th October 2009 22:39
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 24th July 2006 23:16


All times are GMT +2. The time now is 10:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.