[aklug] Re: Postconf review

From: Royce Williams <royce@tycho.org>
Date: Tue Sep 22 2015 - 20:52:02 AKDT

I don't know a lot about Postfix, but this seems relatively illuminating:

http://www.postfix.org/BASIC_CONFIGURATION_README.html#myorigin

Royce

On Tue, Sep 22, 2015 at 8:40 PM, Tim Johnson <tim@akwebsoft.com> wrote:
> Yikes! I've forgotten more about programming than most people
> know, but I don't know s**t about email and it's relationship with
> dns and MX records.
>
> So : to quote Royce
>> But if your current PTR record can't be changed, you can change your
>> MX record instead, so that it points to host266.hostmonster.com
>> directly.
> I must ask the question - how do I reconcile MX records with my
> postfix config?
>
> Should I set
> myhostname = host266.hostmonster.com
> or not?
> thanks, Royce
>
> * Royce Williams <royce@tycho.org> [150922 20:29]:
>> I can't really speak to the Postfix config, but I can clarify the DNS
>> a bit more.
>>
>> As Kevin noted, your current PTR record for 74.220.215.66 is
>> host266.hostmonster.com. If it's easy to change (or have Hostmonster
>> change) your PTR to be mail.tj49.com, that would work well.
>>
>> But if your current PTR record can't be changed, you can change your
>> MX record instead, so that it points to host266.hostmonster.com
>> directly.
>>
>> Both methods bring forward and reverse DNS into alignment. Ideally
>> (and even aesthetically :) ), having that hostname reflect the
>> expected mail flows' domain would be better -- but not strictly
>> required.
>>
>> Royce
>>
>>
>>
>> On Tue, Sep 22, 2015 at 6:48 PM, Tim Johnson <tim@akwebsoft.com> wrote:
>> > Hi Royce :
>> >
>> > To clarify your advice :
>> > ## The following would be acceptable as a remedy?
>> > myhostname = host266.hostmonster.com
>> >
>> > thanks
>> > -tim-
>> > * Royce Williams <royce@tycho.org> [150922 17:13]:
>> >> As long as both your MX records and your source of mail have forward
>> >> and reverse DNS that match, you should be fine. In other words, you
>> >> shouldn't have to change anything other than the minimum work to make
>> >> sure that stuff matches.
>> >>
>> >> Royce
>> >>
>> >> On Tue, Sep 22, 2015 at 4:53 PM, Tim Johnson <tim@akwebsoft.com> wrote:
>> >> > * Kevin Miller <atftb2@alaska.net> [150922 16:49]:
>> >> >> On 09/22/2015 03:46 PM, Tim Johnson wrote:
>> >> >> > mail.tj49.com and mail.akwebsoft.com are (I hope that I'm using
>> >> >> > the right word) aliases for host266.hostmonster.com
>> >> >> >
>> >> >> > What would you do to correct this?
>> >> >> > Should I set $myhostname as host266.hostmonster.com ?
>> >> >> >
>> >> >> > thanks for the reply
>> >> >> > -tim-
>> >> >>
>> >> >> I would contact hostmonster and ask them to set the reverse record to
>> >> >> point to mail.tj49.com.
>> >> >>
>> >> >> If they don't want to do that, then setting $myhostname is probably your
>> >> >> best bet. If they will change it, you need to pick which hostname you
>> >> >> want to use.
>> >> >>
>> >> >> This is important mostly when you send mail. If you send to one of the
>> >> >> email servers I run at work for instance, it will look at the hostname
>> >> >> your server posts, and do a DNS lookup on it. It will then take the IP
>> >> >> address that is returned and do a lookup on that. If they don't match,
>> >> >> you get rejected. Not all email admins are as pigheaded as me, but it's
>> >> >> a pretty common way to run a server.
>> >> >>
>> >> >> So long story short, you need to decide what name you want your email
>> >> >> server to use when it's serving up mail, and make sure that the pointer
>> >> >> record (reverse record, i.e. IP address) points to the cname you want to
>> >> >> use.
>> >> >>
>> >> >> Note that the "From" and "Reply to" domains don't have to match the
>> >> >> domain of the mail server. My work email is sent as domain juneau.org.
>> >> >> The mx host has a domain name of ci.juneau.ak.us however. So you can
>> >> >> send as tim@akwebsoft.com or tim@tj49.com. The critical part is that
>> >> >> the forward and reverse records match.
>> >> >>
>> >> > Thanks Kevin. I will probably have to have to change $myhostname
>> >> > since it is a shared server.
>> >> > cheers
>> >> > --
>> >> > Tim
>> >> > http://www.akwebsoft.com, http://www.tj49.com
>> >> > ---------
>> >> > To unsubscribe, send email to <aklug-request@aklug.org>
>> >> > with 'unsubscribe' in the message body.
>> >> >
>> >> ---------
>> >> To unsubscribe, send email to <aklug-request@aklug.org>
>> >> with 'unsubscribe' in the message body.
>> >>
>> >
>> > --
>> > Tim
>> > http://www.akwebsoft.com, http://www.tj49.com
>> > ---------
>> > To unsubscribe, send email to <aklug-request@aklug.org>
>> > with 'unsubscribe' in the message body.
>> >
>> ---------
>> To unsubscribe, send email to <aklug-request@aklug.org>
>> with 'unsubscribe' in the message body.
>>
>
> --
> Tim
> http://www.akwebsoft.com, http://www.tj49.com
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Sep 22 20:52:54 2015

This archive was generated by hypermail 2.1.8 : Tue Sep 22 2015 - 20:52:54 AKDT