Tag: iredmail

  • iRedMail Intentional policy rejection

    iRedMail Intentional policy rejection

    On an iRedMail, when receiving an email from steam, the mail server rejects the email with the error message “Recipient address rejected: Intentional policy rejection, please try again later”.

    Jan 31 20:31:46 mail postfix/smtpd[2042109]: Anonymous TLS connection established from smtp-03-tuk1.steampowered.com[208.64.202.39]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
    Jan 31 20:31:47 mail postfix/smtpd[2042109]: NOQUEUE: reject: RCPT from smtp-03-tuk1.steampowered.com[208.64.202.39]: 451 4.7.1 : Recipient address rejected: Intentional policy rejection, please try again later; from= to= proto=ESMTP helo=
    Jan 31 20:31:47 mail postfix/smtpd[2042109]: disconnect from smtp-03-tuk1.steampowered.com[208.64.202.39] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=5/7
    

    This is due to gray listing in iRedMail server.

    To whitelist steam in iRedMail, run

    /opt/iredapd/tools/greylisting_admin.py --disable --from '@steampowered.com'
    

    Example

    root@mail:/var/log# /opt/iredapd/tools/greylisting_admin.py --disable --from '@steampowered.com'
    * Disable greylisting: @steampowered.com -> @.
    root@mail:/var/log# 
    
  • iredmail

    iRedMail allow you to run your own mail server easily. It use postfix mail server for mail delivery.

    https://www.iredmail.org/

    iredmail increase mail attachment size
    iRedMail Intentional policy rejection

  • iredmail increase mail attachment size

    Default mail attachment size in iredmail is 10 MB. To increase mail attachment size, login to server as user root, run following commands

    postconf -e message_size_limit=104857600
    postconf -e mailbox_size_limit=104857600
    systemctl restart postfix
    

    Here 104857600 is 100 MB in bytes (100 * 1024 * 1024). Change this as required. Sending very large file using mail attachment is not recommended, it is better use file sharing services like Google Drive, Dropbox, Microsoft OneDrive or another file hosting service for sharing large files.

    Now edit php.ini file

    vi /etc/php/7.2/fpm/php.ini
    

    Change value for 3 of the following settings. It can be anything above 100 MB or whatever attachment size you want to use.

    memory_limit = 256M;
    upload_max_filesize = 100M;
    post_max_size = 120M;
    

    Restart php-fpm

    systemctl restart php7.2-fpm
    

    Edit roundcube configuration file

    vi /opt/www/roundcubemail/config/config.inc.php
    

    Set value for

    $config['max_message_size'] = '100M';
    

    Edit Nginx config file

    vi /etc/nginx/conf-available/client_max_body_size.conf
    

    Set value for

    client_max_body_size 100m;
    

    restart nginx

    systemctl restart nginx