#210 space in aliases shouldn't be allowed


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.


  • roland obermayer

    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.

  • Christian Boltz

    Christian Boltz - 2012-05-27

    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.

  • Christian Boltz

    Christian Boltz - 2012-05-27
    • status: open --> closed-fixed
  • Christian Boltz

    Christian Boltz - 2014-01-12

    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)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks