summaryrefslogtreecommitdiff
path: root/doc/forum/mailname_set_by_Propellor.Property.Hostname.sane/comment_1_199da2bf7793c33841d21599703a3006._comment
blob: 47e7e6695e13b6adb767a626c0ca580d89d70dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2015-10-23T16:31:19Z"
 content="""
Well, for a hostname like "foo.example.com", it's right to use example.com
for the mailname. OTOH, for hostname "example.com", it currently uses
"com" for the mailname, which is certianly wrong. (It also uses "example"
for the hostname, which I dunno if is right or not, probably a matter of
opinion.)

I've special cased it to require at least one dot in the domain, and
parameterized domain extraction for cases where the default method
doesn't work.
"""]]