This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Email whitelisting expression

Hi,

 

I need to whitelist an email id ( envelope-from ) which is something like btv1==330be1b068d==username@website.com . Each time, the random id in the envelope from changes ( for ex: btv1==110be1b068d==username@website.com ). So how to whiitelist these kind of email ids? What kind of expressions should I use?

 

Thank you.



This thread was automatically locked due to age.
Parents
  • Hi,

    a little late but since it's unanswered ...

    Assuming you are on Puremessage f. Unix, you are probably looking at 'whitelisted-senders' which in turn has a match type 'email (see etc/lists.conf).

    man PureMessage::List should give some guidance to allowed wildcards and type dependent match exceptions. A first starter (just made up, please check for alternate facts and mileage thoroughly) might look like:

     pmx-list add whitelisted-senders 'btvl==*==username@example.com'
    1 row affected

    pmx-list test whitelisted-senders 'tvl==123123123d==username@example.com'
    tvl==123123123d==username@example.com did not match (since initial 'b' is missing)

    pmx-list test whitelisted-senders 'btvl==123123123d==username@example.com'
    btvl==123123123d==username@example.com matched

    pmx-list test whitelisted-senders 'btvl==123123123d==username@example.com==username@example.com'
    btvl==123123123d==username@example.com==username@example.com did not match

    '*' wont match on '@' or '.' and thus wont 'consume' '123123123d==username@example.com'

    Hope, this provides a starting point.

    Jens

Reply
  • Hi,

    a little late but since it's unanswered ...

    Assuming you are on Puremessage f. Unix, you are probably looking at 'whitelisted-senders' which in turn has a match type 'email (see etc/lists.conf).

    man PureMessage::List should give some guidance to allowed wildcards and type dependent match exceptions. A first starter (just made up, please check for alternate facts and mileage thoroughly) might look like:

     pmx-list add whitelisted-senders 'btvl==*==username@example.com'
    1 row affected

    pmx-list test whitelisted-senders 'tvl==123123123d==username@example.com'
    tvl==123123123d==username@example.com did not match (since initial 'b' is missing)

    pmx-list test whitelisted-senders 'btvl==123123123d==username@example.com'
    btvl==123123123d==username@example.com matched

    pmx-list test whitelisted-senders 'btvl==123123123d==username@example.com==username@example.com'
    btvl==123123123d==username@example.com==username@example.com did not match

    '*' wont match on '@' or '.' and thus wont 'consume' '123123123d==username@example.com'

    Hope, this provides a starting point.

    Jens

Children