Re: Change dovecot hostname

2016-08-25 Thread Scott W. Sander
Edgar, /etc/hostname has "appserver4". I'm using this server for more than just a postfix+Dovecot server, so don't want to name it "mail.domain.test". In any case, I already solved the issue I was having by adding "hostname = mail.domain.test" to /etc/dovecot/10-master.conf and reloading the con

Re: Change dovecot hostname

2016-08-23 Thread Edgar Pettijohn
I'm chiming in kind of late, but what's in /etc/hostname? Sent from my iPhone > On Aug 23, 2016, at 6:03 PM, Scott W. Sander wrote: > > Well, I tried setting the following in /etc/environment and restarting the > server: > > DOVECOT_HOSTDOMAIN="mail.domain.test" > > After doing so, I verified

Re: Change dovecot hostname

2016-08-23 Thread Scott W. Sander
Well, I tried setting the following in /etc/environment and restarting the server: DOVECOT_HOSTDOMAIN="mail.domain.test" After doing so, I verified that the command "dovecot --hostdomain" returned "mail.domain.test" and not "appserver4.domain.com"; however, the email received header still shows:

Re: Change dovecot hostname

2016-08-23 Thread Scott W. Sander
I'll check out the environment variable method, but I also ran "doveconf | grep hostname" and it returned "hostname = ". This leads me to believe it might be possible to specify a hostname directive in one of Dovecot's configuration files. The problem is 1) I'm not sure that it is truly possible

Re: Change dovecot hostname

2016-08-23 Thread Sami Ketola
Hi, Looking at the source code it seems that the fqdn used in the lmtp received headers is fetched from environment variable DOVECOT_HOSTDOMAIN and if that is not defined gethostbyname() is used. You can try setting that prior launching dovecot. Sami > On 19 Aug 2016, at 21:43, Scott W. San

Re: Change dovecot hostname

2016-08-22 Thread Joseph Tam
"Scott W. Sander" writes: Received: from mail.domain.test by appserver4.domain.com (Dovecot) with LMTP id z7RGLzH4uldlPAAAxdv4Dw for ; Mon, 22 Aug 2016 09:03:45 -0400 --- I want the part that says "by appserver4.domain.com (Dovecot)" to say "by mail.domain.test (Dovecot)". I don't wa

Re: Change dovecot hostname

2016-08-22 Thread Tom Sommer
Removing the headers entirely was discussed: http://dovecot.markmail.org/search/?q=received#query:received+page:1+mid:t4utsjcionjcfwce+state:results Don't know if it was forgotten for 2.3, but hope not :) --- Tom On 2016-08-22 15:14, Scott W. Sander wrote: Here are some example headers from an

Re: Change dovecot hostname

2016-08-22 Thread Scott W. Sander
Here are some example headers from an email sent from an internal Exchange account to an account on Dovecot (u...@domain.test): --- Received: from mail.domain.test by appserver4.domain.com (Dovecot) with LMTP id z7RGLzH4uldlPAAAxdv4Dw for ; Mon, 22 Aug 2016 09:03:45 -0400 Received: fr

Re: Change dovecot hostname

2016-08-19 Thread Joseph Tam
"Scott W. Sander" writes: I have noticed that the name of my private server running dovecot appears in email headers rather than the public-friendly name of my server. Which headers are you taking about? If you're talking about Received: headers, that's usually inserted by your MTA, not dovec

Change dovecot hostname

2016-08-19 Thread Scott W. Sander
I have noticed that the name of my private server running dovecot appears in email headers rather than the public-friendly name of my server. Is there a method to specify an alternate server name for the dovecot server to use for itself in the dovecot configuration files? I performed a few Google