Mail for a domain just from known server(s)

Discussion in 'Mail Gateway: Installation and configuration' started by Robert Schuster, Nov 29, 2018.

  1. Robert Schuster

    Robert Schuster New Member

    Joined:
    Feb 18, 2009
    Messages:
    13
    Likes Received:
    0
    If I know mail for domain xyz.tld can just be sent from server 111.111.111.111 or 222.222.222.222 how can I reject any mails for whatever@xyz.tld from any other server?
    Of course the best solution would be a filter rule built at the PMG Interface, but a postfix hack is also welcome

    regards
     
  2. Alwin

    Alwin Proxmox Staff Member
    Staff Member

    Joined:
    Aug 1, 2017
    Messages:
    1,744
    Likes Received:
    151
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Robert Schuster

    Robert Schuster New Member

    Joined:
    Feb 18, 2009
    Messages:
    13
    Likes Received:
    0
    Hi Alwin,

    thanks for for the hint but this doesn't solve the challenge at all and yes - I've read the documentation.
    Unfortunately there was a little typo in my question which makes the whole post more or less nonsense...
    I wrote mail for domain xyz.tld where I've meant mail from domain xyz.tld.

    So the right question is:

    If I know mail from sender-domain xyz.tld can just be sent from server 111.111.111.111 or 222.222.222.222 how can I reject any mails from whatever@xyz.tld sent thru any other server

    Sorry for the confusion
    regards
    Robert
     
  4. Alwin

    Alwin Proxmox Staff Member
    Staff Member

    Joined:
    Aug 1, 2017
    Messages:
    1,744
    Likes Received:
    151
    This calls for SPF and 'reject unknown sender' of postfix. This can be reached through Proxy -> Options. Then all mail sender that do not comply will be rejected. Else you will need to set the two rules, first allow then deny, making it more complicated later on, when there will be more server or domains. I suggest the first variant.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice