#210 space in aliases shouldn't be allowed

v2.3.2
closed-fixed
nobody
None
5
2014-01-12
2010-09-14
Christian Boltz
No

Accidential ;-) finding by a customer:

When creating an alias, you can enter " foo" in the from field. This results in the creation of an " foo@example.com" alias (with leading space!) and people will wonder why the alias will fail with "user unknown".

PostfixAdmin should prevent spaces - either with trim() or with a error message.

Discussion

  • Just had a pretty similar issue:

    A domain "example.com " - with a space at the end - was added.
    It seems that postfix does not mind - mails are. But in postfixadmin it's impossilbe to select it in the virtual-list.

     
  • Fixed in SVN trunk r1390 - check_email() did a trim() before validating the mail address :-/

    @robelix: I can't create a domain with space at the end in SVN trunk, therefore I assume it's fixed.

     
    • status: open --> closed-fixed
     
  • Also backported to the 2.3 branch (r1622) - and reverted r1520 there (which did trim() the localpart of a mailbox, but missed to do the same for aliases)