Quantcast
Channel: iRedMail — iRedMail Support
Viewing all 12087 articles
Browse latest View live

Change mail attachment size

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):0.9.4
- Linux/BSD distribution name and version: Debian 8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hi.
I executed 2 commands:
# postconf -e message_size_limit='20971520'
# postconf -e mailbox_size_limit='104857600'
but all the same there don't pass letters from Outlook of 18-19 MB, it is only less than 15 MB.
If to execute - postconf - n message_size_limit,  that removes 20971520


Block attachment names

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: CentOS 6.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====

Hi,

is it possible to block attachments on the basis of the names?
Like *nvoic*.zip

Thanks,
Marcel

Devuan support

$
0
0

Has anyone experimented with Devuan at all?  I'm quite interested in it.

Currently, you install Debian and then install devuan-baseconf.deb, which reconfigures the system to Devuan.  I am preparing to test this in a virtual machine.

I am guessing it would not be possible to install iRedMail directly under Devuan, but if I install iRedMail under Debian and then convert to Devuan, would iRedMail still work correctly?  Has anyone else attempted this?

Alias Domain for MySql ?

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.4
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hey,
     First of all thank you for this project. It is my first time setting up a mail server and It wasn't as hard as I feared, in fact It was pretty easy for the most part. There is one bit that I can't figure out though. So I bought a domain name (abc.com) and then set the fqdn to be mx.abc.com while doing the initial setup. Now my test e-mail address has the following name test@mx.abc.com, I want to configure it so that whenever someone sends an e-mail to test@abc.com it gets relayed to test@mx.abc.com. Long story short I want my e-mail addresses to have the abc.com suffix rather than mx.abc.com. How would I do that manually, without the iRedAdmin-Pro license ?
Thanks,

Upgrade Move and merge multiple mail servers to single iRedmail server

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.8.7, 0.9.0,  0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====

I need to upgrade, move and merge multiple iRedmail servers to a single iRedmail server running the latest 0.9.4 version. Each existing iRedmail server hosts a number of different mail domains.

I have studied the upgrade and move tutorials and I believe I am comfortable with the general upgrade and move processes.

I plan to upgrade all the existing iRedmail servers to the latest version and then I want to migrate and consolidate all the mail domains and mailboxes onto a single new server.

Specific questions related to the consolidation of mail servers:

1.  Can I just export the vmail database on each server and import into MySQL on the new server, one after the other?

2.  Can I copy all the folders under /var/vmail from the different servers to /var/vmail on the new server, one after the other?

My concern is that I may overwrite something by repeating the import and copy process with files and mail folders coming from different servers.

Are there any issues I need to look out for?

Install error on centos6.7

$
0
0

Hi everyone

I downloaded version iRedMail-0.9.4.tar.bz2 and tried to install it on centos6.7.
I downloaded the package, uploaded to my server and unsipped.
When I ran bash get_all , progress was made, but I got the error below and could go no further.
I went over to the nginx site and tried to sign up to check on this, but was rejectet as a spam
during signup.

Not being able to contact nginx I am wondering if anyone else had this error and how it is resolved.
I have apache and hiawatha installed but not running, I take it from the error below, nginx is trying to download a module and can not, if I am not using nginx then is there a way to continue with the install, or is nginx required at all
and is there a way to avoid installing this nginx moduel.

http://nginx.org/packages/centos/OSRELE … epomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirrors
Error: Cannot retrieve repository metadata (repomd.xml) for repository: nginx. Please verify its path and try again

Regards, john

HA iRedmail, Using: KeepAlived+HAProxy,GlusterFS, syncLDAP, dbReplica

$
0
0

======== Required information ====
- iRedMail version (check /etc/iredmail-release):  iRedMail-0.9.4
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: -
====

Hi, This is my testing for HA mailservers and it's work smoothly
sorry for using standard config, bcause im not linux expert. wink
*use search engine first if u have a problem big_smile


GOAL: 2 iRedmail Servers behind 2 Keepalived+HAProxy 
REQUIRED: 4 Servers Under Centos 7
EXAMPLE DOMAIN : ngembatbas.kom


t10a

*all servers must be installed CentOS7

STEPS :
1. Install+Configure KeepAlived
2. Install+Configure HAProxy
3. Install+Configure GlusterFS as glusterserver & glusterclient  (u can use separate machine for glusterserve) it's better to use a new hard drive with the same capacity 
4. Install+Configure Iredmail -> sync LDAP(Master-Slave), replicate MariDB (Master-Master)


                **************************************************************
                        1. Install+Configure KeepAlived  (2 Servers)
                **************************************************************   

#for both servers:

[root@ ~] nano /etc/hosts

192.168.1.1 ha1
192.168.1.2 ha2
192.168.1.3 mail1
192.168.1.4 mail2

[root@ ~] yum install -y keepalived
[root@ ~] mv /etc/keepalived/keepalived.conf /etc/keepalived/keepalived.conf_DEFAULT

#on server1
[root@ha1 ~] nano /etc/keepalived/keepalived.conf
#Add this

vrrp_script chk_haproxy {
    script "killall -0 haproxy" # check the haproxy process
    interval 2 # every 2 seconds
    weight 2 # add 2 points if OK
}
vrrp_instance VI_1 {
    interface eth0 # (change eth0  to your existing interface ) interface to monitor
    state MASTER # MASTER on ha1, BACKUP on ha2
    virtual_router_id 51
    priority 101 # 101 on ha1, 100 on ha2
    virtual_ipaddress {
    192.168.1.10 # virtual ip address
    }
    track_script {
        chk_haproxy
    }
}

#on server2
[root@ha2 ~] nano /etc/keepalived/keepalived.conf
#Add this

vrrp_script chk_haproxy {
    script "killall -0 haproxy" # check the haproxy process
    interval 2 # every 2 seconds
    weight 2 # add 2 points if OK
}
vrrp_instance VI_1 {
    interface eth0 # (change eth0  to your existing interface ) interface to monitor
    state BACKUP # MASTER on ha1, BACKUP on ha2
    virtual_router_id 51
    priority 100 # 101 on ha1, 100 on ha2
    virtual_ipaddress {
    192.168.1.10 # virtual ip address
    }
    track_script {
        chk_haproxy
    }
}

#start KeepAlived on both servers
[root@ ~] systemctl enable keepalived
[root@ ~] systemctl start keepalived

#cek status of virtual IP (192.168.1.10) using this command on both servers,
[root@ha2 ~] ip a


                **************************************************************
                        2. Install+Configure HAProxy  (2 Servers)
                **************************************************************   
#for both servers:               
[root@ ~] yum install -y haproxy               
[root@ ~] mv /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg_DEFAULT

#on server1 add this
[root@ha1 ~] nano /etc/haproxy/haproxy.cfg

global
        log 127.0.0.1   local0
        log 127.0.0.1   local1 debug
        maxconn   45000 # Total Max Connections.
        daemon
        nbproc      1 # Number of processing cores.
defaults
        timeout server 86400000
        timeout connect 86400000
        timeout client 86400000
        timeout queue   1000s

# [HTTP Site Configuration]
listen  http_web 192.168.1.10:80
                bind *:80
                bind *:443 ssl crt /etc/ssl/ngembatbas.kom/ngembatbas.kom.pem
            redirect scheme https if !{ ssl_fc }
        mode http
        balance roundrobin  # Load Balancing algorithm
        option httpchk
        option forwardfor
        server mail1 192.168.1.3:443 weight 1 maxconn 512 check
        server mail2 192.168.1.4:443 weight 1 maxconn 512 check

# [HTTPS Site Configuration]
listen  https_web 192.168.1.10:443
        mode tcp
        balance source# Load Balancing algorithm
        reqadd X-Forwarded-Proto:\ http
        server mail1 192.168.1.3:443 weight 1 maxconn 512 check
        server mail2 192.168.1.4:443 weight 1 maxconn 512 check

# Reporting
listen stats :9000 #Listen on localhost port 9000
                mode http
                stats enable #Enable statistics
                stats hide-version #Hide HAPRoxy version, a necessity for any public-facing site
                stats realm Haproxy\ Statistics #Show this text in authentication popup (escape space characters with backslash)
                stats uri /haproxy_stats #The URI of the stats page, in this case localhost:9000/haproxy_stats
                stats auth Username:Password #Set a username and password

       
#on server2 add this
[root@ha2 ~] nano /etc/haproxy/haproxy.cfg

global
        log 127.0.0.1   local0
        log 127.0.0.1   local1 debug
        maxconn   45000 # Total Max Connections.
        daemon
        nbproc      1 # Number of processing cores.
defaults
        timeout server 86400000
        timeout connect 86400000
        timeout client 86400000
        timeout queue   1000s

# [HTTP Site Configuration]
listen  http_web 192.168.1.10:80
                bind *:80
                bind *:443 ssl crt /etc/ssl/ngembatbas.kom/ngembatbas.kom.pem
            redirect scheme https if !{ ssl_fc }
        mode http
        balance roundrobin  # Load Balancing algorithm
        option httpchk
        option forwardfor
        server mail1 192.168.1.3:80 weight 1 maxconn 512 check
        server mail2 192.168.1.4:80 weight 1 maxconn 512 check

# [HTTPS Site Configuration]
listen  https_web 192.168.1.10:443
        mode tcp
        balance source# Load Balancing algorithm
        reqadd X-Forwarded-Proto:\ http
        server mail1 192.168.1.3:443 weight 1 maxconn 512 check
        server mail2 192.168.1.4:443 weight 1 maxconn 512 check

# Reporting
listen stats :9000 #Listen on localhost port 9000
                mode http
                stats enable #Enable statistics
                stats hide-version #Hide HAPRoxy version, a necessity for any public-facing site
                stats realm Haproxy\ Statistics #Show this text in authentication popup (escape space characters with backslash)
                stats uri /haproxy_stats #The URI of the stats page, in this case localhost:9000/haproxy_stats
                stats auth your_username:your_password #Set a username and password

#Create cert for ssl redirect (to iRedMail Servers)
[root@ ~] mkdir /etc/ssl/ngembatbas.kom/
[root@ ~] openssl genrsa -out /etc/ssl/ngembatbas.kom/ngembatbas.kom.key 2048
[root@ ~] openssl req -new -key /etc/ssl/ngembatbas.kom/ngembatbas.kom.key \
                   -out /etc/ssl/ngembatbas.kom/ngembatbas.kom.csr

[root@ ~] openssl x509 -req -days 365 -in /etc/ssl/ngembatbas.kom/ngembatbas.kom.csr \
                    -signkey /etc/ssl/ngembatbas.kom/ngembatbas.kom.key \
                    -out /etc/ssl/ngembatbas.kom/ngembatbas.kom.crt
                   
[root@ ~] cat /etc/ssl/ngembatbas.kom/ngembatbas.kom.crt /etc/ssl/ngembatbas.kom/ngembatbas.kom.key \
           | sudo tee /etc/ssl/ngembatbas.kom/ngembatbas.kom.pem   
          
#Activate HAProxy service:
[root@ ~] systemctl enable haproxy
[root@ ~] systemctl start haproxy

#check log if any errors
[root@ ~] tail -f /var/log/messages

#allow http/s,haproxystat  ports
[root@ ~] firewall-cmd --zone=public --permanent --add-port=80/tcp
[root@ ~] firewall-cmd --zone=public --permanent --add-port=443/tcp
[root@ ~] firewall-cmd --zone=public --permanent --add-port=9000/tcp
[root@ ~] firewall-cmd --reload


                **************************************************************
                        3. Install+Configure GlusterFS  (2 Servers)
                **************************************************************
               
#add this on both servers               
[root@ ~] nano /etc/hosts   

192.168.1.3 mail1
192.168.1.4 mail2

#on server1 add new disk
[root@mail1 ~] fdisk /dev/sdb    #type 'n', and hit enter for next question, (dont forget to write) hit 'w'
[root@mail1 ~] /sbin/mkfs.ext4 /dev/sdb1
[root@mail1 ~] mkdir /glusterfs1

[root@mail1 ~] nano /etc/fstab
#add this line
/dev/sdb1 /glusterfs1      ext4    defaults        1 2

#remount all
[root@mail1 ~] mount -a

#on server2 add new disk
[root@mail2 ~] fdisk /dev/sdb    #type 'n', and hit enter for next question, (dont forget to write) hit 'w'
[root@mail2 ~] /sbin/mkfs.ext4 /dev/sdb1
[root@mail2 ~] mkdir /glusterfs2

[root@ ~] nano /etc/fstab
#add this line

/dev/sdb1 /glusterfs1      ext4    defaults        1 2

#remount all
[root@mail2 ~] mount -a

#Install to both servers               
[root@ ~] rpm  -ivh  http://dl.fedoraproject.org/pub/epel/7/ … noarch.rpm
[root@ ~] wget  -P /etc/yum.repos.d http://download.gluster.org/pub/gluster … -epel.repo
[root@ ~] yum -y install glusterfs glusterfs-fuse glusterfs-server
#start it
[root@ ~] systemctl enable glusterd.service
[root@ ~] systemctl start glusterd.service
#disabling firewalld, 
[root@ ~] systemctl stop firewalld.service
[root@ ~] systemctl disable firewalld.service               

#on server1
[root@mail1 ~]# gluster peer probe mail2

#on server2
[root@mail1 ~]# gluster peer probe mail1

#u can check status using this command : 'gluster peer status'

#ONLY on server1
[root@mail1 ~]# gluster volume create mailrep-volume replica 2  mail1:/glusterfs1/vmail  mail2:/glusterfs2/vmail force
[root@mail1 ~]# gluster volume start mailrep-volume
#check it
[root@mail1 ~]# gluster volume info mailrep-volume


#create folder for vmail n mount glusterfs to vmail folder

#on server1
[root@mail1 ~]# mkdir  /var/vmail
[root@mail1 ~]# mount.glusterfs mail1:/mailrep-volume /var/vmail/

[root@mail1 ~]# nano /etc/fstab
#add this line

mail1:/mailrep-volume /var/vmail glusterfs defaults,_netdev 0 0

[root@mail1 ~] mount -a
#check it
[root@mail1 ~] df -h

#on server2
[root@mail2 ~]# mkdir  /var/vmail
[root@mail2 ~]# mount.glusterfs mail2:/mailrep-volume /var/vmail/

[root@mail2 ~]# nano /etc/fstab
#add this line

mail2:/mailrep-volume /var/vmail glusterfs defaults,_netdev 0 0

[root@mail2 ~] mount -a
#check it
[root@mail2 ~] df -h

###TESTING
cd  /var/vmail; touch R1 R2 R3 R4 R5 R6

#make sure, by checking files on both servers,
[root@ ~] ls -la /var/vmail


                **************************************************************
                        4. Install+Configure GlusterFS  (2 Servers)
                **************************************************************

For installing iredmail on centos,check this link : http://www.iredmail.org/docs/install.ir … .rhel.html

ATTENTION:
* First install iRedMail to mail1 and Second to mail2 (better,do not reboot after installing iRedMail, wait untill finish install/configure)
* Dont forget to choose LDAP and using default mail folder : '/var/vmail' ---  (i use nginx)


    #Configure LDAP sync (Master-Slave) :
    *************************************
#on server1(MASTER):
[root@mail1 ~] nano /etc/openldap/slapd.conf
###insert this to bottom of file

moduleload syncprov
index entryCSN,entryUUID eq
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 200

#on server2 SLAVE):
[root@mail2 ~] nano /etc/openldap/slapd.conf
##insert this to bottom of file and change the settings to your own

syncrepl   rid=001
           provider=ldap://mail1:389
           searchbase="dc=ngembatbas,dc=kom"
           bindmethod=simple
           binddn="cn=vmail,dc=ngembatbas,dc=kom"
           credentials=erec3xiThBUW9QnnU9Bnifp3434
           schemachecking=on
           type=refreshOnly
           retry="60 +"
           scope=sub
           interval=00:00:01:00
           attrs="*,+"

          
#on both servers set firewalld to accept gluster port, ldap port, and database to each servers 
#or u can set by your own rules
[root@ ~] firewall-cmd --permanent --zone=iredmail --add-rich-rule="rule family="ipv4" \
            source address="192.168.1.3/24" \
            port protocol="tcp" port="389" accept"

[root@ ~] firewall-cmd --permanent --zone=iredmail --add-rich-rule="rule family="ipv4" \
            source address="192.168.1.4/24" \
            port protocol="tcp" port="3306" accept"

[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=111/udp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=24007/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=24008/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=24009/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=139/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=445/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=965/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=2049/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=38465-38469/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=631/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=963/tcp
[root@ ~] firewall-cmd --zone=iredmail --permanent --add-port=49152-49251/tcp
#reload it
[root@ ~] firewall-cmd --reload

#restart both servers and next configuring database for replica
[root@ ~] reboot


    #Configure MariaDB replica (Master-Master) :
    ********************************************
#on server1   
[root@mail1 ~]# nano /etc/my.cnf
#add this after [mysqld]

server-id               = 1
    log_bin                 = /var/log/mariadb/mariadb-bin.log
    log-slave-updates
    log-bin-index             = /var/log/mariadb/log-bin.index
    log-error                 = /var/log/mariadb/error.log
    relay-log                 = /var/log/mariadb/relay.log
    relay-log-info-file     = /var/log/mariadb/relay-log.info
    relay-log-index         = /var/log/mariadb/relay-log.index
    auto_increment_increment = 10
    auto_increment_offset   = 1
    binlog_do_db            = amavisd
    binlog_do_db            = iredadmin
    #binlog_do_db           = iredapd
    binlog_do_db            = roundcubemail
    binlog_do_db            = sogo
    binlog-ignore-db=test
    binlog-ignore-db=information_schema
    binlog-ignore-db=mysql
    log-slave-updates
    replicate-ignore-db=test
    replicate-ignore-db=information_schema
    replicate-ignore-db=mysql

#reload database and already master   
[root@mail1 ~]# systemctl restart mariadb


#on server2
[root@mail1 ~]# nano /etc/my.cnf
#add this after [mysqld]

server-id               = 2
    log_bin                 = /var/log/mariadb/mariadb-bin.log
    log-slave-updates
    log-bin-index             = /var/log/mariadb/log-bin.index
    log-error                 = /var/log/mariadb/error.log
    relay-log                 = /var/log/mariadb/relay.log
    relay-log-info-file     = /var/log/mariadb/relay-log.info
    relay-log-index         = /var/log/mariadb/relay-log.index
    auto_increment_increment = 10
    auto_increment_offset = 1
    binlog_do_db            = amavisd
    binlog_do_db            = iredadmin
    #binlog_do_db           = iredapd
    binlog_do_db            = roundcubemail
    binlog_do_db            = sogo
    binlog-ignore-db=test
    binlog-ignore-db=information_schema
    binlog-ignore-db=mysql
    log-slave-updates
    replicate-ignore-db=test
    replicate-ignore-db=information_schema
    replicate-ignore-db=mysql

#reload database and already master   
#on server1
[root@mail1 ~]# systemctl restart mariadb
               
#create replicator user on both servers
[root@mail1 ~]# mysql -u root -pYourDBRootPassword
                create user 'replicator'@'%' identified by '12345678';
                grant replication slave on *.* to 'replicator'@'%';
               
                #check master status for 'File' and 'Position'
                SHOW MASTER STATUS;
                +--------------------+----------+----------------------------------------------+-------------------------------+
                | File               | Position | Binlog_Do_DB                                 | Binlog_Ignore_DB              |
                +--------------------+----------+----------------------------------------------+-------------------------------+
                | mariadb-bin.000001 |      245 | amavisd,iredadmin,iredapd,roundcubemail,sogo | test,information_schema,mysql |
                +--------------------+----------+----------------------------------------------+-------------------------------+
                1 row in set (0.00 sec)
               
                exit;

#on server2               
[root@mail2 ~]# mysql -u root -pYourDBRootPassword
                create user 'replicator'@'%' identified by '12345678';
                grant replication slave on *.* to 'replicator'@'%';
               
                #configure as slave
                slave stop;        
                # change to your own master status MASTER_LOG_FILE is from 'File', MASTER_LOG_POS is from 'Position' of master mail1
                CHANGE MASTER TO MASTER_HOST = '192.168.1.3', MASTER_USER = 'replicator', MASTER_PASSWORD = '12345678', MASTER_LOG_FILE = 'mariadb-bin.000001', MASTER_LOG_POS = 245;
                slave start;    
               
                #check master status for 'File' and 'Position'
                SHOW MASTER STATUS;    
                +--------------------+----------+----------------------------------------------+-------------------------------+
                | File               | Position | Binlog_Do_DB                                 | Binlog_Ignore_DB              |
                +--------------------+----------+----------------------------------------------+-------------------------------+
                | mariadb-bin.000001 |     289 | amavisd,iredadmin,iredapd,roundcubemail,sogo | test,information_schema,mysql |
                +--------------------+----------+----------------------------------------------+-------------------------------+
                1 row in set (0.00 sec)

                #check slave status
                show slave status\G;   
                exit;
[root@mail2 ~]#    systemctl restart mariadb           

#BACK to server1
#on server1
[root@mail1 ~]#
                mysql -u root -pYourDBRootPassword
                slave stop;
                # change to your own master status MASTER_LOG_FILE is from 'File', MASTER_LOG_POS is from 'Position' of master mail2
                CHANGE MASTER TO MASTER_HOST = '192.168.1.4', MASTER_USER = 'replicator', MASTER_PASSWORD = '12345678', MASTER_LOG_FILE = 'mariadb-bin.000001', MASTER_LOG_POS = 289;
                slave start;
               
                #check slave status
                show slave status\G;   
                exit;               
[root@mail1 ~]#    systemctl restart mariadb           
               
#reboot one of mailserver n wait till up, then reboot the other mailserver (*)
               
### FINISH ###
for testing:
1. u can create users using iredadmin on mail1, then check users from mail2 and its already sync big_smile
2. try to login using roundcubemail from any mailserver then u can check users on database 'roundcubemail->users', and its already sync big_smile
3. u can try to shutdown others server to testing it (ha1 or ha2  --/OR--  mail1 or mail2)

*only mail1 'can add n modify' users
*this mailservers act  as Glusterserver & Glusterclient, if u want to reboot the servers, please reboot firts server untill this up then reboot the second server.
if all servers are reboot for the same time it will not mount '/var/vmail' folder.  u must mount manually using this command 'gluster volume start mailrep-volume force'       
               

to view the DB easily, u can install phpmyadmin :
yum install phpmyadmin -y
ln -s /usr/share/phpMyAdmin /var/www/html/

cd /var/lib/php/
mkdir session
chown nginx:nginx session/   

References:
GlusterFS:
http://www.unixmen.com/install-glusterf … -centos-7/

DBReplica
http://linoxide.com/how-tos/configure-m … tos-linux/
http://tecadmin.net/how-to-set-up-mysql … lication/#
https://support.rackspace.com/how-to/my … plication/
http://www.tecmint.com/mariadb-master-s … el-debian/

HAProxy+KeepAlived
http://tecadmin.net/install-and-configu … on-centos/
http://www.unixmen.com/configure-high-a … eepalived/
https://serversforhackers.com/using-ssl … th-haproxy

LDAP
http://www.iredmail.org/forum/topic6306 … -only.html

Issues with 'yum upgrade'

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Oracle Linux v7.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL/MariaDB
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro?  No
- Related log if you're reporting an issue:

[robert@smtp ~]$ sudo yum update
Loaded plugins: fastestmirror, langpacks
SOGo                                                     |  951 B     00:00     
epel/x86_64/metalink                                     |  11 kB     00:00     
epel                                                     | 4.3 kB     00:00     
gf                                                       | 2.9 kB     00:00     
iRedMail                                                 | 2.9 kB     00:00     
ol7_UEKR3                                                | 1.2 kB     00:00     
ol7_latest                                               | 1.4 kB     00:00     
(1/5): epel/x86_64/group_gz                                | 169 kB   00:00     
(2/5): gf/x86_64/primary_db                                |  56 kB   00:00     
(3/5): iRedMail/primary_db                                 |  22 kB   00:00     
(4/5): epel/x86_64/updateinfo                              | 511 kB   00:01     
(5/5): epel/x86_64/primary_db                              | 3.9 MB   00:03     
(1/6): ol7_UEKR3/x86_64/updateinfo                         |  61 kB   00:00     
(2/6): SOGo/x86_64/primary                                 |  49 kB   00:00     
(3/6): ol7_latest/x86_64/group                             | 681 kB   00:01     
(4/6): ol7_latest/x86_64/updateinfo                        | 789 kB   00:02     
(5/6): ol7_latest/x86_64/primary                           |  15 MB   00:13     
(6/6): ol7_UEKR3/x86_64/primary                            |  17 MB   00:15     
Determining fastest mirrors
* epel: mirrors.rit.edu
SOGo                                                                    351/351
ol7_UEKR3                                                               399/399
ol7_latest                                                          13876/13876
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-cli.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be updated
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-intl-5.4.16-36.el7_1.x86_64
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-mbstring-5.4.16-36.el7_1.x86_64
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-fpm-5.4.16-36.el7_1.x86_64
---> Package php-common.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-gd.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-gd.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-ldap.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-ldap.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-mysql.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-mysql.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-pdo.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-pdo.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-pgsql.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-pgsql.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-process.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-process.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
---> Package php-xml.x86_64 0:5.4.16-36.el7_1 will be updated
---> Package php-xml.x86_64 0:5.4.16-36.0.1.el7_1 will be an update
--> Finished Dependency Resolution
Error: Package: php-intl-5.4.16-36.el7_1.x86_64 (@base/7)
           Requires: php-common(x86-64) = 5.4.16-36.el7_1
           Removing: php-common-5.4.16-36.el7_1.x86_64 (@base/7)
               php-common(x86-64) = 5.4.16-36.el7_1
           Updated By: php-common-5.4.16-36.0.1.el7_1.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-36.0.1.el7_1
           Available: php-common-5.4.16-21.el7.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-21.el7
           Available: php-common-5.4.16-23.el7_0.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0
           Available: php-common-5.4.16-23.el7_0.1.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0.1
           Available: php-common-5.4.16-23.el7_0.3.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0.3
Error: Package: php-fpm-5.4.16-36.el7_1.x86_64 (@base/7)
           Requires: php-common(x86-64) = 5.4.16-36.el7_1
           Removing: php-common-5.4.16-36.el7_1.x86_64 (@base/7)
               php-common(x86-64) = 5.4.16-36.el7_1
           Updated By: php-common-5.4.16-36.0.1.el7_1.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-36.0.1.el7_1
           Available: php-common-5.4.16-21.el7.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-21.el7
           Available: php-common-5.4.16-23.el7_0.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0
           Available: php-common-5.4.16-23.el7_0.1.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0.1
           Available: php-common-5.4.16-23.el7_0.3.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0.3
Error: Package: php-mbstring-5.4.16-36.el7_1.x86_64 (@base/7)
           Requires: php-common(x86-64) = 5.4.16-36.el7_1
           Removing: php-common-5.4.16-36.el7_1.x86_64 (@base/7)
               php-common(x86-64) = 5.4.16-36.el7_1
           Updated By: php-common-5.4.16-36.0.1.el7_1.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-36.0.1.el7_1
           Available: php-common-5.4.16-21.el7.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-21.el7
           Available: php-common-5.4.16-23.el7_0.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0
           Available: php-common-5.4.16-23.el7_0.1.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0.1
           Available: php-common-5.4.16-23.el7_0.3.x86_64 (ol7_latest)
               php-common(x86-64) = 5.4.16-23.el7_0.3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
====

I was wondering if anyone has had this problem before and if so, how it was fixed?  I would hate to run the "you could try running..." suggestions, but do not want to break an otherwise perfectly functioning mail server.


Sender address rejected: User unknown in virtual mailbox table

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.4
- Linux/BSD distribution name and version: Raspbian 8.0 on RaspberryPi2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySql
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? NO
- Related log if you're reporting an issue: 
====
When sending email to a account that is hosted on my Rpi2 I receive a message "Sender address rejected: User unknown in virtual mailbox table" in a second after I send it.

Here is readout from postconf -n


alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
biff = no
body_checks = pcre:/etc/postfix/body_checks.pcre
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
header_checks = pcre:/etc/postfix/header_checks
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
mail_owner = postfix
mailbox_command = /usr/lib/dovecot/deliver
mailq_path = /usr/bin/mailq
message_size_limit = 15728640
mydestination = $myhostname, localhost, localhost.localdomain
mydomain = mx.myIP
myhostname = mx.myIP
mynetworks = 127.0.0.1
myorigin = mx.myIP
newaliases_path = /usr/bin/newaliases
postscreen_access_list = permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr
postscreen_blacklist_action = enforce
postscreen_dnsbl_action = enforce
postscreen_dnsbl_reply_map = texthash:/etc/postfix/postscreen_dnsbl_reply
postscreen_dnsbl_sites = zen.spamhaus.org*3 b.barracudacentral.org*2
postscreen_dnsbl_threshold = 2
postscreen_dnsbl_whitelist_threshold = -2
postscreen_greet_action = enforce
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination proxy:mysql:/etc/postfix/mysql/relay_domains.cf
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp-amavis_destination_recipient_limit = 1
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_loglevel = 0
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = may
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks permit_sasl_authenticated reject_non_fqdn_helo_hostname reject_invalid_helo_hostname check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_recipient_domain reject_non_fqdn_recipient reject_unlisted_recipient check_policy_service inet:127.0.0.1:7777 permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = reject_unknown_sender_domain reject_non_fqdn_sender reject_unlisted_sender permit_mynetworks reject_sender_login_mismatch permit_sasl_authenticated check_sender_access pcre:/etc/postfix/sender_access.pcre
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail.crt
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail.crt
smtpd_tls_dh1024_param_file = /etc/ssl/dhparams.pem
smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf proxy:mysql:/etc/postfix/mysql/catchall_maps.cf proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000

/etc/hostname
mx
raspberrypi

/etc/hosts
127.0.0.1    mx.myip mx localhost localhost.localdomain
127.0.0.1    localhost
::1        localhost ip6-localhost ip6-loopback
ff02::1        ip6-allnodes
ff02::2        ip6-allrouters

127.0.1.1    raspberryp

Any ideas what could be the problem?

p.s. I have 3 domains that I would like to host emails

amavisd won't start after adding secondary domain.

$
0
0

Hi ZHB, i already created new topic..my main issue right now is when i add my secondary domain which is "uniorient.net" in /etc/amavisd/amavisd.conf then after adding i restarted the amavisd it has an error come out and it won't start the service.
but my main domain theres no any issue and its working fine with the amavisd which is "bluecrossphilippines.com"
here's the output error of amavisd:

● amavisd.service - Amavisd-new is an interface between MTA and content checkers                                                                             .
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor pres                                                                             et: disabled)
   Active: failed (Result: start-limit) since Tue 2016-03-15 07:37:02 PHT; 15s a                                                                             go
     Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 5686 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=e                                                                             xited, status=2)
Main PID: 3826 (code=exited, status=0/SUCCESS)

Mar 15 07:37:02 mail.eurogroup.com systemd[1]: amavisd.service: control process                                                                              exited, code=exited status=2
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: Failed to start Amavisd-new is an                                                                              interface between MTA and content checkers..
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: Unit amavisd.service entered fail                                                                             ed state.
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: amavisd.service failed.
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: amavisd.service holdoff time over                                                                             , scheduling restart.
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: start request repeated too quickl                                                                             y for amavisd.service
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: Failed to start Amavisd-new is an                                                                              interface between MTA and content checkers..
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: Unit amavisd.service entered fail                                                                             ed state.
Mar 15 07:37:02 mail.eurogroup.com systemd[1]: amavisd.service failed.


note: my serverhostname is mail.eurogroup.com

here's the screenshot of my /etc/amavisd/amavisd.conf


# Add dkim_key here.
dkim_key("bluecrossphilippines.com", "dkim", "/var/lib/dkim/bluecrossphilippines.com.pem");
dkim_key("uniorient.net", "dkim", "/var/lib.dkim/uniorient.net.pem");
# Note that signing mail for subdomains with a key of a parent
# domain is treated by recipients as a third-party key, which
# may 'hold less merit' in their eyes. If one has a choice,
# it is better to publish a key for each domain (e.g. host1.a.cn)
# if mail is really coming from it. Sharing a pem file
# for multiple domains may be acceptable, so you don't need
# to generate a different key for each subdomain, but you
# do need to publish it in each subdomain. It is probably
# easier to avoid sending addresses like host1.a.cn and
# always use a parent domain (a.cn) in 'From:', thus
# avoiding the issue altogether.
#dkim_key("host1.bluecrossphilippines.com", "dkim", "/var/lib/dkim/bluecrossphilippines.com.pem");
#dkim_key("host3.bluecrossphilippines.com", "dkim", "/var/lib/dkim/bluecrossphilippines.com.pem");

# Add new dkim_key for other domain.

@dkim_signature_options_bysender_maps = ( {
    # ------------------------------------
    # For domain: bluecrossphilippines.com.
    # ------------------------------------
    # 'd' defaults to a domain of an author/sender address,
    # 's' defaults to whatever selector is offered by a matching key

    #'postmaster@bluecrossphilippines.com'    => { d => "bluecrossphilippines.com", a => 'rsa-sha256', ttl =>  7*24*3600 },
    #"spam-reporter@bluecrossphilippines.com"    => { d => "bluecrossphilippines.com", a => 'rsa-sha256', ttl =>  7*24*3600 },

    # explicit 'd' forces a third-party signature on foreign (hosted) domains
    "bluecrossphilippines.com"  => { d => "bluecrossphilippines.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    "uniorient.net" => { d => "uniorient.net", a => 'rsa-sha256', ttl => 10*24*3600 },
    #"host1.bluecrossphilippines.com"  => { d => "host1.bluecrossphilippines.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    #"host2.bluecrossphilippines.com"  => { d => "host2.bluecrossphilippines.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    # ---- End domain: bluecrossphilippines.com ----

    # catchall defaults
    '.' => { a => 'rsa-sha256', c => 'relaxed/simple', ttl => 30*24*3600 },
} );


thanks..for the support

How to setup iRedadmin as subdomain on nginx?

$
0
0

How to setup iRedadmin as subdomain on nginx?
Although I have managed to get Roundcube working on subdomain, but failing to setup on iRedadmin.
Anyone tried and succeed? Please share your config. Thanks.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Centos
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Can't send e-mails via smtp: Connection timed out

$
0
0

Hi,

I can't send emails to external servers. Receiving emails work, sending between two internal users work.

In /var/log/mail.log it looks like this:

Mar 15 15:39:49 ip-178-216-202-221 postfix/smtp[7466]: connect to alt1.gmail-smtp-in.l.google.com[74.125.23.27]:25: Connection timed out

=======

When I use telnet/wget to portquiz.net on port 25 it doesn't connect.

=======

traceroute -n -T -p 25 gmail-smtp-in.l.google.com gives:

traceroute to gmail-smtp-in.l.google.com (64.233.165.27), 30 hops max, 60 byte packets
1  * * *
2  * * *
3  * * *
4  * * *
5  * * *
6  * * *
7  * * *
8  * * *
9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

=======

My server is in cloud, none of the ports are blocked by hosting company.

=======

/etc/hosts:

127.0.0.1    localhost
127.0.0.1 literyikreski.pl

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
178.216.202.221 ip-178-216-202-221.e24cloud.com ip-178-216-202-221

=====

Mailboxes are in literyikreski.pl domain.

====

http://www.anti-abuse.org/multi-rbl-che … 16.202.221

says that i'm blocked by barracudacentral.

Can anybody help me?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Debian 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

554 Transaction failed

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.2
- Linux/BSD distribution name and version: centos7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:

log begin:
Mar 14 18:04:03 srv postfix/smtpd[19806]: connect from localhost[127.0.0.1]
Mar 14 18:04:03 srv postfix/smtpd[19806]: CC39C18F136: client=localhost[127.0.0.1]
Mar 14 18:04:03 srv postfix/cleanup[19794]: CC39C18F136: message-id=<2c3ade86-a1cd-40c0-b8bb-e9f2d95ec479@email.android.com>
Mar 14 18:04:03 srv postfix/smtpd[19806]: disconnect from localhost[127.0.0.1]
Mar 14 18:04:03 srv postfix/qmgr[12325]: CC39C18F136: from=<ryan@3wayhandshake.xyz>, size=3838, nrcpt=1 (queue active)
Mar 14 18:04:03 srv amavis[5204]: (05204-05) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [172.56.19.211]:26225 [172.56.19.211] <ryan@3wayhandshake.xyz> -> <Charly@eclaro.com>, Queue-ID: 4659B18F134, Message-ID: <2c3ade86-a1cd-40c0-b8bb-e9f2d95ec479@email.android.com>, mail_id: 8kaTYFqKgt41, Hits: 2.585, size: 2455, queued_as: CC39C18F136, dkim_new=dkim:3wayhandshake.xyz, 2299 ms
Mar 14 18:04:03 srv postfix/smtp[19799]: 4659B18F134: to=<Charly@eclaro.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.8, delays=0.48/0.01/0/2.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as CC39C18F136)
Mar 14 18:04:03 srv postfix/qmgr[12325]: 4659B18F134: removed
Mar 14 18:04:11 srv postfix/smtp[19807]: CC39C18F136: to=<Charly@eclaro.com>, relay=mail.eclaro.com[38.96.160.36]:25, delay=7.3, delays=0.04/0.02/2.2/5, dsn=5.0.0, status=bounced (host mail.eclaro.com[38.96.160.36] said: 554 Transaction failed (in reply to MAIL FROM command))
Mar 14 18:04:16 srv postfix/cleanup[19794]: 28877147DCC: message-id=<20160314220416.28877147DCC@srv.ryanmilton.xyz>
Mar 14 18:04:16 srv postfix/bounce[19823]: CC39C18F136: sender non-delivery notification: 28877147DCC
Mar 14 18:04:16 srv postfix/qmgr[12325]: 28877147DCC: from=<>, size=5814, nrcpt=1 (queue active)
Mar 14 18:04:16 srv postfix/qmgr[12325]: CC39C18F136: removed
Mar 14 18:04:16 srv postfix/pipe[19826]: 28877147DCC: to=<ryan@3wayhandshake.xyz>, relay=dovecot, delay=0.15, delays=0.04/0.02/0/0.1, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 14 18:04:16 srv postfix/qmgr[12325]: 28877147DCC: removed


log end


====
bounce back from MAILER-DAEMON:
This is the mail system at host srv.ryanmilton.xyz.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<Charly@eclaro.com>: host mail.eclaro.com[100.37.185.10] said: 554 Transaction
    failed (in reply to MAIL FROM command)
Reporting-MTA: dns; srv.ryanmilton.xyz
X-Postfix-Queue-ID: 2D123B93BA
X-Postfix-Sender: rfc822; ryan@3wayhandshake.xyz
Arrival-Date: Tue, 15 Mar 2016 11:49:44 -0400 (EDT)

Final-Recipient: rfc822; Charly@eclaro.com
Original-Recipient: rfc822;Charly@eclaro.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; mail.eclaro.com
Diagnostic-Code: smtp; 554 Transaction failed
Subject    Re: The job description for our call today
From    ryan@3wayhandshake.xyz
To    Charly Vie <Charly@eclaro.com>
Date    Today 11:49
Return-Path: <ryan@3wayhandshake.xyz>
Received: from srv.ryanmilton.xyz (localhost [127.0.0.1])
    by srv.ryanmilton.xyz (Postfix) with ESMTP id 2D123B93BA
    for <Charly@eclaro.com>; Tue, 15 Mar 2016 11:49:44 -0400 (EDT)
Authentication-Results: srv.ryanmilton.xyz (amavisd-new); dkim=pass
    reason="pass (just generated, assumed good)"
    header.d=3wayhandshake.xyz
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=
    3wayhandshake.xyz; h=user-agent:message-id:references
    :in-reply-to:subject:subject:to:from:from:date:date
    :content-transfer-encoding:content-type:content-type
    :mime-version; s=dkim; t=1458056983; x=1458920984; bh=SUg6a6taGJ
    UwVdkRQTlMJGZrNdlRYHYgWqYP4IC59hY=; b=KKn+5R9ZxrSIKp15LDtjwnVMk3
    V5Cy/nKPfrjiNC1OtdUMfmlnUBJTpQQJ5FWZQFIz/8c16oGOK9UZsABdF4HqvukO
    7DKrR1LwNOPzUnHLslJOSG2VpOS6ICEEQiPpMlKKEUnfgnAGvGQrlZnpYxCGiiqw
    2eAlYiw92KTl+XldE=
X-Virus-Scanned: amavisd-new at ryanmilton.xyz
Received: from srv.ryanmilton.xyz ([127.0.0.1])
    by srv.ryanmilton.xyz (srv.ryanmilton.xyz [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id PtkPojeQhkjx for <Charly@eclaro.com>;
    Tue, 15 Mar 2016 11:49:43 -0400 (EDT)
Received: from _ (localhost [127.0.0.1])
    by srv.ryanmilton.xyz (Postfix) with ESMTPSA id 3BF8BB93AE
    for <Charly@eclaro.com>; Tue, 15 Mar 2016 11:49:43 -0400 (EDT)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
format=flowed
Content-Transfer-Encoding: 8bit
Date: Tue, 15 Mar 2016 11:49:43 -0400
From: ryan@3wayhandshake.xyz
To: Charly Vie <Charly@eclaro.com>
Subject: Re: The job description for our call today
In-Reply-To: <05c7d10ec04b45a892bc8831f973eb81@Exchange-mbx02.eClaro.com>
References: <05c7d10ec04b45a892bc8831f973eb81@Exchange-mbx02.eClaro.com>
Message-ID: <364996307c8aa9ef34f747091fa6f2b7@3wayhandshake.xyz>
X-Sender: ryan@3wayhandshake.xyz
User-Agent: Roundcube Webmail

Hi Charly,

SMTP via 587 STARTTLS does not work.

$
0
0

========- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Centos 7 minimal install
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro?no
- Related log if you're reporting an issue:
====
Firewall shows open, server is listening, but testing from another device: Operation timed out.
main.cf and master.cf attached


rdm-imac:~ rdm$ nc -v srv.ryanmilton.xyz 587
nc: connectx to srv.ryanmilton.xyz port 587 (tcp) failed: Operation timed out

[root@srv rmilton]# netstat -ntulp | grep 587
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      4179/master
[root@srv rmilton]# firewall-cmd --list-all
iredmail (default, active)
  interfaces: eno1
  sources:
  services: http https imap imaps plexmediaserver pop3 pop3s smtp ssh submission
  ports: 443/tcp 587/tcp 993/tcp
  masquerade: no


/etc/firewalld/services shows the following for submission.xml:

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      3264/nginx: master
<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>SMTP over TLS</short>
  <description>This option allows incoming SMTP mail delivery over TLS.</description>
  <port protocol="tcp" port="587"/>
</service>

Our system has detected that this message does 550-5.7.1 not meet

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: freebsd
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:
====
I get e-mail on alias allegro@x.pl, and i reply from don@x.pl

This is the mail system at host ns352115.ip-91-121-79.eu.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<tuopony@gmail.com>: host gmail-smtp-in.l.google.com[2a00:1450:400c:c01::1b]
    said: 550-5.7.1 [2001:41d0:1:8433::] Our system has detected that this
    message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR
    records and 550-5.7.1 authentication. Please review 550-5.7.1
    https://support.google.com/mail/?p=ipv6_authentication_error for more 550
    5.7.1 information. ly10si2846256wjb.9 - gsmtp (in reply to end of DATA
    command)

Final-Recipient: rfc822; tuopony@gmail.com
Original-Recipient: rfc822;tuopony@gmail.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [2001:41d0:1:8433::] Our system has detected
    that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding
    PTR records and 550-5.7.1 authentication. Please review 550-5.7.1
    https://support.google.com/mail/?p=ipv6_authentication_error for more 550
    5.7.1 information. ly10si2846256wjb.9 - gsmtp

SOGo problem with ActiveSync Outlook 2016

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mariadb
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)
Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)
....
====

Hello, yes i know that is Sogo problem, but maybe you can help me wink
after migration (http://www.iredmail.org/forum/topic1075 … dmail.html) i try connect Outlook 2016 (EAS) to server. All catalogs create in outlook, but they are empty...
i can send message, connection is correct, but not see anything.
Web Sogo works fine, iPhone Exchange connection to, but Outlook not sad
sogo error say only:

Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)
Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)

maybe someone have something like that or known how to solve this...

kazix

Emails don't deliver

$
0
0

I have finished installing the iRedMail onto my server and I am able to open my iRedMail admin panel to create webmail but my problem now is Emails don't deliver; they come back as failure delivery. Yesterday you mention editing the following below in other to be able to send and receive emails. I have tried every command I know but it keeps coming back as "no such file or directory"

Please, what command should I use to edit the following below?

I use a linux server...

Please, type me the command to edit the iRedAPD on my server.

Sending emails from a second server to iredmail

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: Linux Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:  /var/log/mail.log
====

Hi,

I have installed a new server, and I need it to send regular emails ...
I am using on this server the tool: nullmailer

As config:

In remotes folder:

ip-email-server smtp --port=587 --starttls --user=user --pass=pass

On my logs from my Iredmail server:

Mar 16 16:16:13 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:13 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]
Mar 16 16:16:13 zobe postfix/smtpd[9046]: connect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: SSL_accept error from unknown[ip_second_machine]: Connection reset by peer
Mar 16 16:16:14 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: connect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: SSL_accept error from unknown[ip_second_machine]: Connection reset by peer
Mar 16 16:16:14 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: connect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: SSL_accept error from unknown[ip_second_machine]: Connection reset by peer
Mar 16 16:16:14 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]

Thx

Root sending emails with error messages

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Debian 8 64-bit
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

So this is the emails that I get every 10 minutes:
Subject: Cron <www-data@geflex> [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh

Error while processing /etc/awstats/awstats.web.conf
Create/Update database for config "/etc/awstats/awstats.web.conf" by AWStats version 7.2 (build 1.992)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied
Setup ('/etc/awstats/awstats.web.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Error while processing /etc/awstats/awstats.conf
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.2 (build 1.992)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
------------------------------------------------------------------------------------------------

And I can't login to https://mydomain.com/awstats/awstats.pl with postmaster@mydomain.com username and password.

So whats wrong here and how can I fix this?

I thank you in advance for your help

Delivery to the following recipient failed permanently:

$
0
0

Hi all iredmail support,


can you please assist me with this one,, im getting error message whenever i send a email from my gmail to my iredmail server..but i don't have any problem with sending from iredmail server to outbound..

here's the error messages..

Delivery to the following recipient failed permanently:

     rdiaz@bluecrossphilippines.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain bluecrossphilippines.com by mail.bluecrossphilippines.com. [121.96.35.141].

The error that the other server returned was:
550 Access denied (not in relay or upstream list)


----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to;
        bh=ue3n0pVvMUpr6rjnJ9MnuNExogOvvCalWm6BzH8lWHU=;
        b=IGqMwF/r/tyYD6WvMJgG9aFFaQNX/tAKqYQ0Dzw+QT5ncaeg3W7XntP8TH4WD3EZIV
         Tyt7ec6Ip7uWpLbL5kzk3JLEfP1dlDFdnYHI1r0Ebn6MXpEJ/8r98lg6JM2WplmfJrCo
         eaoPrvepzIQt42O8Q4idNeiSTRqn3YhBxcR/qxOXs9hmMLY7g6VXEZRxxMGAFy5BYMt8
         zf6Ij1thjbAo25neNXDTTO2rpTNEbxKwTgVlzV+ItUCp24Xud0/zmhwH8GggtOw7xLiO
         kqgOHv6sY6ilVrES6dsv4WUVHVwN5+c2aGCa2IPFc3Db/wpWMjR+vikal5JHS0eiHpOA
         Pfew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:date:message-id:subject:from:to;
        bh=ue3n0pVvMUpr6rjnJ9MnuNExogOvvCalWm6BzH8lWHU=;
        b=WQlwiDG5LHU/MqUv+YXFcot7FkjfAhW+alwcH9hC4/FjMkDmgRHtzFQEIrvAr69Sa6
         vVGyHBiu8/cg/eVKYswEUTxgd2qg0Lubdp5+B+b8aX7BKf0SmOuP1DKog0dxjrEZZdwM
         5gVq2U5JQSRZaal1LUqhf+Ah7sniJ864qgZmBl0DIhzWziPs3dpFnzG2TFdgK6kDox5s
         YLZi/XHQpogGDspFDWbKZD5+peLgq0s8zBi4GzlOA04ylWTHXZ0kXFDpV6hCauL4ibK5
         tkkcrPKrhv/zN9nAjyyFhUfQmjWh8OZ4wqvRgD0rl44v1EoDUxQ4KSiBOQb29AsijR9U
         ow6w==
X-Gm-Message-State: AD7BkJJqpfs3mGnpeA7jFR32KCnXx38VE4HrJI6+V+gC9jWth1G+fouhs436drntnwi4Q8vKa7Ds2zLFonkfVA==
MIME-Version: 1.0
X-Received: by 10.50.28.78 with SMTP id z14mr26491169igg.51.1458187559762;
Wed, 16 Mar 2016 21:05:59 -0700 (PDT)
Received: by 10.50.244.134 with HTTP; Wed, 16 Mar 2016 21:05:59 -0700 (PDT)
Date: Thu, 17 Mar 2016 12:05:59 +0800
Message-ID: <CA+2nKsYAqMH_p4RdSobrWwZ-dp3+-qWEW3SyP+d1xjKo5PP94w@mail.gmail.com>
Subject: test
From: RheX Diaz <rhex.diaz@gmail.com>
To: rdiaz@bluecrossphilippines.com
Content-Type: multipart/alternative; boundary=089e0158acb684289f052e36bf08


thanks

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Viewing all 12087 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>