1 (edited by joseluisbz 2017-05-24 10:36:44)

Topic: iRedMail can't send email to myself server, troubleshooting via Termin

==== 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?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====



Hostnamectl:
       CPE OS Name: cpe:/o:centos:centos:7
        Kernel: Linux 3.10.0-327.36.1.el7.x86_64
$ rpm --query centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64
$

$ more /etc/iredmail-release
0.9.6 PGSQL edition.



I recently installed iRedMail-0.9.6 with Nginx and PostgreSQL on CentOS 7.

I was testing on my LAN (I'm not using an external server or another Host outside of my LAN) From web browser (Roundcube) and email client applications like: Thunderbird (CentOS 7), MS Outlook (macOS) and MS Outlook (Windows).

I was sending email testing to my same account ('from' and 'to' are equal account), even to another account in the same server, but I don't receive the email test and I want to know what happens exactly!

Is there a method (step by step) using TERMINAL to find and fix problems sending email, and receiving it?

How check if email was sent? via CLI or Terminal?

If the email was sent effectively (without problem) How I know the problem to receive an email?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail can't send email to myself server, troubleshooting via Termin

Please check Postfix log file to find related error log.
FYI: http://www.iredmail.org/docs/file.locat … ml#postfix

3

Re: iRedMail can't send email to myself server, troubleshooting via Termin

Thank you...

But, I'm thinking a method interactive and manual (step by step)  to detect the problem...  Like telnet, etc, etc.

4

Re: iRedMail can't send email to myself server, troubleshooting via Termin

I suggest use the quickest and easiest way to figure it out:

*) Send a testing email with MUA (Outlook, Thunderbird, ...). Maybe your MUA raises error directly.
*) Check Postfix log file to see whether there's any error

There's no difference to testing with telnet or other command line tools, the destination and your hope is log files.

5 (edited by joseluisbz 2017-05-26 09:43:02)

Re: iRedMail can't send email to myself server, troubleshooting via Termin

I found the problem...

I bit of history.

I was trying to install iredMail on CentOS 7

# mkdir iRedMail
# cd iRedMail
# wget    https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.6.tar.bz2
# tar xjf iRedMail-0.9.6.tar.bz2
# cd iRedMail-0.9.6
# bash iRedMail.sh

But I got this error.

ERROR...
    Package clamav-server is obsoleted by clamav, but obsoleting package does not provide for requirements
    ---> Package systemd-libs.x86_64 0:219-19.el7 will be updated
    --> Processing Dependency: systemd-libs = 219-19.el7 for package: libgudev1-219-19.el7.x86_64
    ---> Package systemd-libs.x86_64 0:219-30.el7_3.8 will be an update
    ---> Package systemd-python.x86_64 0:219-19.el7 will be updated
    ---> Package systemd-python.x86_64 0:219-30.el7_3.8 will be an update
    ---> Package systemd-sysv.x86_64 0:219-19.el7 will be updated
    ---> Package systemd-sysv.x86_64 0:219-30.el7_3.8 will be an update
    --> Running transaction check
    ---> Package clamav-server-systemd.noarch 0:0.99.2-1.el7 will be installed
    --> Processing Dependency: clamav-server = 0.99.2-1.el7 for package: clamav-server-systemd-0.99.2-1.el7.noarch
    Package clamav-server is obsoleted by clamav, but obsoleting package does not provide for requirements
    ---> Package libgudev1.x86_64 0:219-19.el7 will be updated
    ---> Package libgudev1.x86_64 0:219-30.el7_3.8 will be an update
    --> Finished Dependency Resolution
    Error: Package: clamav-server-systemd-0.99.2-1.el7.noarch (epel)
          Requires: clamav-server = 0.99.2-1.el7
          Installing: 1:clamav-0.98.4-65.el7.x86_64 (atrpms)
          clamav-server = 1:0.98.4-65.el7
          Available: clamav-server-0.99.2-1.el7.x86_64 (epel)
          clamav-server = 0.99.2-1.el7
          Available: clamav-0.99.2-1.el7.x86_64 (epel)
          Not found
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
    << ERROR >> Installation failed, please check the terminal output.
    << ERROR >> If you're not sure what the problem is, try to get help in iRedMail
    << ERROR >> forum: http://www.iredmail.org/forum/
#

I was trying to solve with:

# yum install clamav clamav-data clamav-devel clamav-filesystem clamav-lib clamav-scanner clamav-scanner-systemd clamav-server clamav-server-systemd clamav-update

But I was experimenting the same ERROR.

Then removed previosly installed clamav*rpm packages and I installed from downloaded of specific source:

# wget    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-0.99.2-1.el7.x86_64.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-data-0.99.2-1.el7.noarch.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-devel-0.99.2-1.el7.x86_64.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-filesystem-0.99.2-1.el7.noarch.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-lib-0.99.2-1.el7.x86_64.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-scanner-0.99.2-1.el7.noarch.rpm http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-scanner-systemd-0.99.2-1.el7.noarch.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-server-0.99.2-1.el7.x86_64.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-server-systemd-0.99.2-1.el7.noarch.rpm    http://dl.fedoraproject.org/pub/epel/7/x86_64/c/clamav-update-0.99.2-1.el7.x86_64.rpm
# yum install *.rpm

All was installed without problem...

But, Running

bash iRedMail.sh

the problem again raise up.

I solve this editing the file

iRedMail/iRedMail-0.9.6/functions/packages.sh

changing the line

ALL_PKGS="${ALL_PKGS} clamav clamav-update clamav-server clamav-server-systemd"

by:

ALL_PKGS="${ALL_PKGS} " #clamav clamav-update clamav-server clamav-server-systemd"

Later I remove all clamav*.rpm installed by iRedMail.sh and reinstalled the downloaded rpm again with

# yum install clamav*.rpm 

Again I face another problem!

file /usr/lib64/dovecot/libdovecot-sieve.so.0.0.0 conflicts between attempted installs of dovecot-pigeonhole-2:0.4.2-32.1.el7.x86_64 and dovecot-1:2.2.28-1.el7.centos.x86_64

I had similar solution, I remove all dovecot*.rpm  installed by iRedMail.sh and install rpm packages with another source:

# wget    ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/dovecot-2.2.10-7.el7.x86_64.rpm    ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/dovecot-pgsql-2.2.10-7.el7.x86_64.rpm    ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/dovecot-mysql-2.2.10-7.el7.x86_64.rpm    ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/dovecot-pigeonhole-2.2.10-7.el7.x86_64.rpm 
# yum install dovecot*.rpm

All rpm packages was installed without problem...


Now changing the lines on file

iRedMail/iRedMail-0.9.6/functions/packages.sh

ALL_PKGS="${ALL_PKGS} dovecot dovecot-pigeonhole"
ALL_PKGS="${ALL_PKGS}  dovecot-mysql dovecot-pgsql"

by

ALL_PKGS="${ALL_PKGS} " # dovecot dovecot-pigeonhole"
ALL_PKGS="${ALL_PKGS} " # dovecot-mysql dovecot-pgsql"

I run again

# bash iRedMail.sh

without problem...

Maybe it's a problem of repo, but I solved in this manner.

The problem was previously I disabled sieve protocol into dovecot.conf  file. When I got :

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve.

Then I need to reinstall the server and reenabled the protocol again.

6

Re: iRedMail can't send email to myself server, troubleshooting via Termin

Disable "atrpms" yum repo and try again.

It's clearly mentioned in iRedMail installation tutorial that you must disable all third-party yum repos. iRedMail requires official CentOS repos and EPEL repo.