MountainX a écrit :
> Brian Evans - Postfix List wrote:
>>[snip]
>> In  your case, you should have something like:
>> mydomain = example.com
>> myhostname = mail.example.com
>>
>> myhostname must be the fully qualified name.

example.com is fully qualified.

It is ok for him to use this as long as it example.com can be resolved
(in DNS) and as long as he always defines mydomain explicitely.

>> Brian
>>
>>
> 
> But would it be correct to leave it as it?
> One reason is that my spam settings (which I copied/pasted into postfix
> config) are so tight that basic functionality fails if I am using two or
> more domains (example.com and xyz.example.com). And I kind of like it like
> this. I just want it simple and I want it secure. And since I don't
> understand the spam settings, I want to leave them as they are, which means
> they only work when I use only a single domain (example.com with no
> hostname).
> 

myhostname is not used for your spam settings.

> BTW, mail.example.com is defined in DNS as a CNAME record pointing to
> ghs.google.com, so I don't want to use that anyway.
> 

then use another name. add a "joe.example.com" in DNS that resolves to
the server IP (if there are multiple IPs, use the IP used for sending
mail to the internet) and use it.

> I have the option to use xyz.example.com, but there is no A record defined
> for xyz.example.com nor do I want there to be one. (xyz means anything)
> 
> I simply want everything in the email headers to always show up as
> example.com not nnn.example.com. 

why?

> My entire domain really consists of a single server hosting a blog.
> 

most "legitimate" sites have hostnames with more than two labels. by
using a two labels hostname, you look different and get exposed to more
checks:

- in one config, I used to require the heloname to reslve if it is
"short" (two labels in general).

- A lot of snowshoe spammers use "2 labels" hostnames (rustgarden.com,
deviltreez.com, blizzardheart.com, auberginefizz.com, ...). some people
may confuse you with one of these.

Reply via email to