Find the answer to your Linux question:
Results 1 to 3 of 3
Hi everybody, I have a MailServer configured with Postfix and Virtual Mailboxes with MySQL. I would like to add and option which forbid the users of the office of sending ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    51

    [SOLVED] Postfix: Forbid destination servers


    Hi everybody,

    I have a MailServer configured with Postfix and Virtual Mailboxes with MySQL.

    I would like to add and option which forbid the users of the office of sending emails to some especific servers like HOTMAIL and YAHOO.

    I read abous "access" (man 5 access), but I don't know exactly how to get it.

    Any ideas?

    Thanks!

    Aleix

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    maybe this parameter
    Code:
    smtpd_sender_restrictions =
    smtpd_sender_restrictions = - Google Search

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    51
    Thanks jledhead,

    It worked!

    Finally someone suggested some more things and I tried this:

    Code:
    Create /etc/postfix/access
    
    Add:
    yahoo.com REJECT
    
    or replace REJECT with whatever action you are looking for
    
    run:
    postmap /etc/postfix/access
    
    Add to /etc/postfix/main.cf under smtpd_client_restrictions
    check_client_access hash:/etc/postfix/access
    thanks again!
    Aleix

Posting Permissions

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