client wants email address with apostrophe in it - is it possible?

Jeff-C

Well-Known Member
Mar 16, 2004
116
0
166
A client wants an email address ending in an apostorphe - is this possible?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
31
473
Go on, have a guess
Theoretically, yes. RFC821 gives the spec for the local-part of the email address (before "@", not refering to quoted text) as:

any one of the 128 ASCII characters, but not any <special> or <SP>

<SP> = the space character (ASCII code 32)
<special> = "<" | ">" | "(" | ")" | "[" | "]" | "\" | "." | "," | ";" | ":" | "@" """ | the control characters (ASCII codes 0 through 31 inclusive and 127)

However, whether cPanel complies with the RFC is another matter. If you try it and it doesn't work, then it's not RFC compliant, but there's little you can do except raise a bugzilla report.
 

Jeff-C

Well-Known Member
Mar 16, 2004
116
0
166
Thanks Jonathan - cpanel strips out the apostrophe when the account is actually created (it says "name' has been successfully created", but then in the list only name appears, without the '). I wasn't sure if I could create/alter it manually, or if this would risk breaking other things.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
31
473
Go on, have a guess
Assuming that Exim is RFC compliant in this regard (and I see no reason why not) then sending and receiving email should be fine, but the next hurdle would be whether cppop is.

If you wanted to manually edit the cPanel files, you going to have to delve quite deeply into how it hooks into exim and within the /home/username/etc/ and /home/username/mail/ directory structures.

Probably more trouble than it is worth.

An alternative might be to create a cPanel acceptable account and then add an alias with the apostrophe manually into /etc/valiases/domain.com redirecting the email to the cPanel acceptable POP3 account - this may be the better solution.