Results 1 to 3 of 3

Thread: Reject email addressed to selected domains

  1. #1
    Join Date
    Feb 2011
    Posts
    33
    Rep Power
    4

    Default Reject email addressed to selected domains

    I have a couple of PHB's who insist on misspelling a couple of domain names. Then that email sits in the queue for several days before it times out and bounces back. Of course, if the intended recipient does not get the email immediately, they have to resend the email with the incorrect domain name 10 or 20 times.

    I need a way to set up a list of these 10 domains they insist on sending email to so that when they send the email, the email is immediately bounced back to them

    Any suggestions?

  2. #2
    Join Date
    Jul 2009
    Location
    Jyväskylä, Finland
    Posts
    83
    Rep Power
    6

    Default

    You could use postfix transport map to automatically reject the typoed domains.
    In main.cf of postfix, add another transport_maps line(below the proxy:ldap):
    transport_maps = hash:/opt/zimbra/postfix/conf/typo_domains

    add line to typo_domains:
    .example.com error:mail for *.example.com is not deliverable, you misspelled the domain

    run postmap /opt/zimbra/postfix/conf/typo_domains to hash the file, restart mailboxd.

    But be warned, zimbra update might wipe this config.

  3. #3
    Join Date
    Feb 2011
    Posts
    33
    Rep Power
    4

    Default

    Thank you! That fixed it - but I found one problem.

    The changes to main.cf are lost anytime zimbra is restarted

    To fix that I found if instead of editting main.cf you execute the following, the changes will be preserved

    su zimbra
    zmlocalconfig -e postfix_transport_maps=hash:/opt/zimbra/postfix/conf/typo_domains,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf

    (the zmlocalconfig line above should be one line)

    Do not know if it will remian between revisions.

Similar Threads

  1. One user, two email domains, one AD authentication domain
    By aldennis in forum Administrators
    Replies: 3
    Last Post: 03-01-2013, 04:57 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. multiple domains and email identities
    By fisch09 in forum Administrators
    Replies: 2
    Last Post: 03-30-2007, 08:48 PM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 02:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •