Recipient canonical maps problem.

  • Mickpsk

    Mickpsk - 2013-12-16


    I have a problem with my recipient_canonical_maps; I m using a fax service by mail, and my users will use printers to send fax by mail only with fax number.

    Printers are configured to use SMTP proxy (postfix), and I configured recipient canonical_maps, to rewrite fax number with the domain of the fax service.

    For this test, I have created a script who send a mail with fax number recipient only (without domain).

    you can check my config here :

    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no

    append_dot_mydomain = no
    append_at_myorigin = yes

    resolve_numeric_domain = yes
    readme_directory = no

    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

    transport_maps = hash:/etc/postfix/transport
    myhostname = vd-smtp
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = vd-smtp , localhost
    mynetworks =
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = ipv4

    recipient_canonical_maps = regexp:/etc/postfix/rcpt_canonical

    --- rcpt_canonical
    /^([0-9][1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])$/ $(1)

    --- POSTMAP Result :
    postmap -q 0666666666 regexp:/etc/postfix/rcpt_canonical

    All things seems to be OK, but when i am sending a mail with a fax number recipient I have this error :

    vd-smtp postfix/smtpd[27092]: connect from unknown[]
    vd-smtp postfix/smtpd[27092]: 2627C4BE7A: client=unknown[]
    vd-smtp postfix/smtpd[27092]: warning: Illegal address syntax from unknown[] in RCPT command: <>
    vd-smtp postfix/smtpd[27092]: disconnect from unknown[]

    So i need you help for resolution of that ? if it possible...

    Thank & Regards


  • Simon Hobson

    Simon Hobson - 2013-12-16

    You're in the wrong forum, from the description for this forum :
    Questions around PostfixAdmin and how to setup Postfix, Dovecot etc. to work with PostfixAdmin. (If you have special questions about Postfix etc. that have nothing to do with PostfixAdmin, you might get better answers on a Postfix forum or mailinglist.)

  • Mickpsk

    Mickpsk - 2013-12-17


    Sorry for my bad view, so I will tell you about PostfixAdmin, can I do some canonical maps with this ?

    Thank you!

  • Simon Hobson

    Simon Hobson - 2013-12-17

    You can use underlying Postfix functionality, but PFA won't help you manage it.

    Basically, PFA allows you to manage virtual domains, mailboxes within those domains, and email aliases within those domains. What you want to do doesn't fall within it's functionality - so it won't help you with your problem.

    It won't stop you dealing with it by way of manual configuration of Postfix - though you may have to be careful not to create unwanted interactions between what PFA does and what your own customisations do.

  • Mickpsk

    Mickpsk - 2013-12-17

    Thank you Simon for your answer ;)



Log in to post a comment.