Menu

#4718 Editing Postfix Restric Sender Map Problem

1.790
closed-fixed
nobody
None
5
2016-03-13
2016-03-08
M.T.R
No

Hi,

upgraded to webmin 1.791.

try the new feature to edit postfix restrict sender map in smtp server options.

i have a map working, but i cannot edit it there.

there is a note on bottom saying:

Restrictions on sender addresses
This map cannot be edited : Webmin does not support the map type permit_mynetworks reject_non_fqdn_sender reject_unknown_sender_domain reject_sender_login_mismatch reject_unlisted_sender check_sender_access hash

what is wrong?

thanks for assistance.

cheers

Discussion

  • Jamie Cameron

    Jamie Cameron - 2016-03-09

    Can you post the line from your /etc/postfix/main.cf file that refers to this map?

     
  • M.T.R

    M.T.R - 2016-03-09

    ok, thanks,
    here it is:

    smtpd_sender_restrictions = permit_mynetworks reject_non_fqdn_sender reject_unknown_sender_domain reject_sender_login_mismatch reject_unlisted_sender check_sender_access hash:/etc/postfix/sender_access regexp:/etc/postfix/sender_access_regexp

    cheers

     
  • Jamie Cameron

    Jamie Cameron - 2016-03-10

    Ah, Webmin doesn't support that format properly - it expects that the smtpd_sender_restrictions line will only have a map value, like hash:/etc/postfix/sender_access

     
  • M.T.R

    M.T.R - 2016-03-10

    yes, but i have been asking before if multiple maps will be supported.
    also regexp are very important and no replacable by normal hash ones.

    hope you find a solution.

    atleast my two maps work as expected.

    <bg></bg>

    cheers

     
  • Jamie Cameron

    Jamie Cameron - 2016-03-11

    Yes, this is a bug - it should be fixed in the next release though. I will update this ticket..

     
  • Jamie Cameron

    Jamie Cameron - 2016-03-13
    • status: open --> closed-fixed
     
    • M.T.R

      M.T.R - 2016-04-05

      Hi Jamie,

      sorry if I disturb you.

      But I got a question concerning Postfix Header Checks, which I cannot solve.

      I need a REGEX rule for rejecting mails, where sender and recipient address
      is the same, example:

      From: mail@example.com
      To: mail@example.com

      or even

      Return-Path: mail@example.com Or From: mail@example.com
      To: mail@example.com

      May be you could give me a tip.

      Thanks in advance.

      Looking forward to the next release of webmin with working restriction
      sender maps editing.

      Best regards

      Mike Roland
      Mididoc Productions
      http://www.mididoc.com
      Tel. +33 (0)6 76 63 04 05
      mail@mididoc.com

       
      • Jamie Cameron

        Jamie Cameron - 2016-04-07

        So you want to check if the left-hand side matches the right-hand side
        of the rule? I don't know if that's possible - it would be a question for
        Postfix experts.

        On 05/Apr/2016 02:49 M.T.R mike1950r@users.sf.net wrote ..

        Hi Jamie,

        sorry if I disturb you.

        But I got a question concerning Postfix Header Checks, which I cannot solve.

        I need a REGEX rule for rejecting mails, where sender and recipient address
        is the same, example:

        From: mail@example.com
        To: mail@example.com

        or even

        Return-Path: mail@example.com Or From: mail@example.com
        To: mail@example.com

        May be you could give me a tip.

        Thanks in advance.

        Looking forward to the next release of webmin with working restriction
        sender maps editing.

        Best regards

        Mike Roland
        Mididoc Productions
        http://www.mididoc.com
        Tel. +33 (0)6 76 63 04 05
        mail@mididoc.com

         
  • Jamie Cameron

    Jamie Cameron - 2016-03-13

    Ok, this will be properly fixed in the next Webmin release.

     
  • M.T.R

    M.T.R - 2016-03-13

    Hi Jamie,

    thanks for fixing this.
    Looking forward to the update.

    cheers

     

Log in to post a comment.

MongoDB Logo MongoDB