Help block send mail in zimbra - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Help block send mail in zimbra

  1. #11
    Wise Guy Participant
    Join Date
    Apr 2011
    Posts
    34
    Hello biitc .

    Regrettably, it seems that you have a basic security problem with your server which needs to be fixed before we can help you further.
    That sort of problem has, unfortunately, nothing to do with either Zimbra or ZeXtras, so we cannot help you with that.
    Our advice is to consult with security professional to evaluate your current situation.

    If you'll need any more Zimbra or ZeXtras-related advice once your system is clean feel free to ask again

    Regards,
    Trantor
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    ZeXtras System Administrator and Installer Guru

  2. #12
    Active Member
    Join Date
    Aug 2014
    Posts
    7
    Hi Trantor,

    I used it for the first time, I need to stop it right now,

    I don't want all user send mail to "only email". Example: "example@gmail.com"

    Help me, please

  3. #13
    Member Participant
    Join Date
    Jan 2013
    Location
    Indonesia
    Posts
    31
    Hi Biitc,

    How if you try to use blacklist email on amavisd.conf.in? just open file /opt/zimbra/conf/amavisd.conf.in with your favorite text editor and add email address that you want block. See the following example :
    # soft-blacklisting (positive score)
    'sender@example.net' => 3.0,
    '.example.net' => 1.0,
    'example@gmail.com' => 100.0,
    save and restart Amavisd with command zmamavisdctl restart

  4. #14
    Active Member
    Join Date
    Oct 2013
    Posts
    6
    Quote Originally Posted by d0s0n View Post
    Hi biitc,

    you can just add a new postfix transport file and tell at zimbra to use it:

    1) create a file like this:
    Code:
    ~$ cat /opt/zimbra/conf/postfix_transport
    example@gmail.com	error:Your Access error message
    blockedDomain.com	error:Your Access error message
    2) Check zimbra local transport setting:
    Code:
    ~$ zmlocalconfig postfix_transport_maps
    postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
    3) Then change the same zimbra local setting to add the new file:
    Code:
    ~$ zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/conf/postfix_transport,ldap:/opt/zimbra/conf/ldap-transport.cf"
    ...after 1 or 2 minutes, the zmconfigd component will reconfigure postfix for you
    Just take a look at /var/log/zimbra.log to see the changing.


    Have a nice day.
    D0s0n


    Hi, I tried to write this rules but I got errors in zimbra.log:

    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: transport_maps lookup failure
    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: hash:/opt/zimbra/conf/postfix_transport is unavailable. open database /opt/zimbra/conf/postfix_transport.db: No such file or directory


    I think needs other step.. right??

    Thanks
    Andrea

  5. #15
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Quote Originally Posted by xandrea View Post
    Hi, I tried to write this rules but I got errors in zimbra.log:

    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: transport_maps lookup failure
    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: hash:/opt/zimbra/conf/postfix_transport is unavailable. open database /opt/zimbra/conf/postfix_transport.db: No such file or directory


    I think needs other step.. right??

    Thanks
    Andrea
    Opsie! Looks like the guide is missing a command:

    After creating the postfix_transport file and after adding the addresses/domains you want to block you need to create the .db file since the type is "hash:"... You can do so by running
    Code:
    postmap /opt/zimbra/conf/postfix_transport
    as the Zimbra user.

    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  6. #16
    Active Member
    Join Date
    Oct 2013
    Posts
    6
    Quote Originally Posted by d0s0n View Post
    Hi biitc,

    you can just add a new postfix transport file and tell at zimbra to use it:

    1) create a file like this:
    Code:
    ~$ cat /opt/zimbra/conf/postfix_transport
    example@gmail.com    error:Your Access error message
    blockedDomain.com    error:Your Access error message
    2) Check zimbra local transport setting:
    Code:
    ~$ zmlocalconfig postfix_transport_maps
    postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
    3) Create the .db file
    Code:
    postmap /opt/zimbra/conf/postfix_transport
    4) Then change the same zimbra local setting to add the new file:
    Code:
    ~$ zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/conf/postfix_transport,ldap:/opt/zimbra/conf/ldap-transport.cf"
    ...after 1 or 2 minutes, the zmconfigd component will reconfigure postfix for you
    Just take a look at /var/log/zimbra.log to see the changing.


    Have a nice day.
    D0s0n

    I tried to write this rule.. but I got some errors in zimbra.log

    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: transport_maps lookup failure
    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: hash:/opt/zimbra/conf/postfix_transport is unavailable. open database /opt/zimbra/conf/postfix_transport.db: No such file or directory


    how can I solve this ?

    thanks
    Andrea

  7. #17
    Active Member
    Join Date
    Oct 2013
    Posts
    6
    1) create a file like this:
    Code:
    ~$ cat /opt/zimbra/conf/postfix_transport
    example@gmail.com	error:Your Access error message
    blockedDomain.com	error:Your Access error message
    2) Check zimbra local transport setting:
    Code:
    ~$ zmlocalconfig postfix_transport_maps
    postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
    3) Then change the same zimbra local setting to add the new file:
    Code:
    ~$ zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/conf/postfix_transport,ldap:/opt/zimbra/conf/ldap-transport.cf"
    ...after 1 or 2 minutes, the zmconfigd component will reconfigure postfix for you
    Just take a look at /var/log/zimbra.log to see the changing.



    I tried to write this rule.. but I got some errors in zimbra.log

    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: transport_maps lookup failure
    Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: hash:/opt/zimbra/conf/postfix_transport is unavailable. open database /opt/zimbra/conf/postfix_transport.db: No such file or directory


    how can I solve this ?

    thanks
    Andrea

  8. #18
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Hello Andrea!

    Did you execute the command I mentioned in post #15?

    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  9. #19
    Active Member
    Join Date
    Oct 2013
    Posts
    6
    Quote Originally Posted by Cine View Post
    Hello Andrea!

    Did you execute the command I mentioned in post #15?

    Have a nice day,
    Cine
    the ZeXtras Team
    Thank you Cine.. I had not read later..

    thanks at all...

    Andrea

  10. #20
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Hello Andrea,
    you're welcome!

    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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