Re: ANNOUNCE - indimail-mta (qmail+ucsp-tcp+daemontools with all patches)
Manvendra Bhangui <[email protected]>
| Newsgroups | gmane.mail.qmail.general |
|---|---|
| Message-ID | <CAOqj+1Nw7jB7r-1o4jtbEW1AxBzYx77JLHcbE8OdvYbqENwT7g@mail.gmail.com> |
On 12 April 2016 at 20:42, <[email protected]> wrote: > > centos 7 install of indimail produces: > > Error: Package: indimail-1.9.1-24.1.x86_64 (home_mbhangui) > Requires: mysql-server > > centos 7 now uses mariadb (equivalent to mysql pretty much). > > can your package be updated? by executing the command I investigated CentOS 7 environment. The base repositories do not come with the repository to install mariadb or mysql from oracle You need to first setup a repo for one of them. If you need mariadb, then setup the repo following instructions at https://mariadb.com/kb/en/mariadb/yum/ If you need mysql-community server then follow instructions at https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/ Both mariadb-server and mysql-community-server provide the virtual package mysql-server. After setting up the server and the IndiMail repo, just give the command # yum install indimail I have attached a install log for CentOS 7 in this email which you can follow
install.txt
(text/plain, 33.3 KB)
Some Infomation on the host =========================== [root@indimail /]# uname -a Linux indimail 3.10.0-327.13.1.el7.x86_64 #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [root@indimail /]# cat /etc/centos-release CentOS Linux release 7.2.1511 (Core) YUM Repo ====================================== [root@indimail /]# cd /etc/yum.repos.d [root@indimail:/etc/yum.repos.d]# cat MariaDB.repo # MariaDB 5.5 CentOS repository list - created 2016-04-13 05:13 UTC # http://mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 Get the Indimail Repo ===================== [root@indimail yum.repos.d]# wget http://download.opensuse.org/repositories/home :indimail/CentOS_7/home:indimail.repo --2016-04-13 06:12:41-- http://download.opensuse.org/repositories/home:indimail/CentOS_7/home:indimail.repo Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2001:67c:2178:8::13 Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://download.opensuse.org/repositories/home:/indimail/CentOS_7/home:indimail.repo [following] --2016-04-13 06:12:42-- http://download.opensuse.org/repositories/home:/indimail/CentOS_7/home:indimail.repo Reusing existing connection to download.opensuse.org:80. HTTP request sent, awaiting response... 200 OK Length: 274 [text/plain] Saving to: ‘home:indimail.repo’ 2016-04-13 06:12:42 (12.7 MB/s) - ‘home:indimail.repo’ saved [274/274] Install IndiMail ==================================================== [root@indimail yum.repos.d]# yum install indimail Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00 centosplus | 3.4 kB 00:00 extras | 3.4 kB 00:00 home_indimail | 1.2 kB 00:00 mariadb | 2.9 kB 00:00 updates | 3.4 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package indimail.x86_64 0:1.9.1-2.1 will be installed --> Processing Dependency: mysql-server for package: indimail-1.9.1-2.1.x86_64 --> Running transaction check ---> Package MariaDB-server.x86_64 0:5.5.48-1.el7.centos will be installed --> Processing Dependency: perl(Data::Dumper) for package: MariaDB-server-5.5.48-1.el7.centos.x86_64 --> Processing Dependency: MariaDB-client for package: MariaDB-server-5.5.48-1.el7.centos.x86_64 --> Processing Dependency: perl(DBI) for package: MariaDB-server-5.5.48-1.el7.centos.x86_64 --> Running transaction check ---> Package MariaDB-client.x86_64 0:5.5.48-1.el7.centos will be installed ---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed --> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64 --> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64 ---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed --> Running transaction check ---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed --> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch --> Running transaction check ---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed --> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch --> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch ---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed --> Running transaction check ---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed ---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: indimail x86_64 1.9.1-2.1 home_indimail 8.4 M Installing for dependencies: MariaDB-client x86_64 5.5.48-1.el7.centos mariadb 8.6 M MariaDB-server x86_64 5.5.48-1.el7.centos mariadb 40 M perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-DBI x86_64 1.627-4.el7 base 802 k perl-Data-Dumper x86_64 2.145-3.el7 base 47 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-Net-Daemon noarch 0.48-5.el7 base 51 k perl-PlRPC noarch 0.2020-14.el7 base 36 k Transaction Summary ================================================================================ Install 1 Package (+9 Dependent packages) Total download size: 58 M Installed size: 244 M Is this ok [y/d/N]: y Downloading packages: (2/10): MariaDB-5.5.48-cen 0% [ ] 0.0 B/s | 0 B --:-- ETA (1/10): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00 (2/10): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00 (4/10): MariaDB-5.5.48-cen 1% [ ] 0.0 B/s | 851 kB --:-- ETA (3/10): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00 (4/10): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00 (5/10): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00 (6/10): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00 (10/10): indimail-1.9.1-2.1.x86_64.rpm | 8.4 MB 03:58 -------------------------------------------------------------------------------- Total 250 kB/s | 58 MB 03:58 Retrieving key from http://download.opensuse.org/repositories/home:/indimail/CentOS_7//repodata/repomd.xml.key Importing GPG key 0xDABA51F0: Userid : "home:indimail OBS Project <home:[email protected]>" Fingerprint: a85b 1e30 a5a2 1351 c580 c616 7424 4b95 daba 51f0 From : http://download.opensuse.org/repositories/home:/indimail/CentOS_7//repodata/repomd.xml.key Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Doing post installation activities for the following 1. Configure /var/log/indimail for multilog 2. Configure /service. Move existing services to /service.org 3. Configure svscanlog service 4. Configure standard catch-all accounts, default qmail configuration 5. Configure /var/indimail/etc/indimail.cnf for MySQL service 6. Configure MySQL DB in /var/indimail/mysqldb/data 7. Configure DKIM, Domainkeys signature 8. Configure QHPSI for inline virus scanning 9. Configure SMTP services on port in 465 25 587 10. Configure default queue configuration for sendmail, qmail-inject 11. Configure ODMR service 12. Configure greylisting service 13. Configure QMTP service 14. Configure QMQP service 15. Configure fetchmail service 16. Configure IMAP/POP3/poppass services 17. Configure indisrvr service 18. Configure nssd service 19. Configure inlookup service 20. Configure qscanq/clamd/freshclam service 21. Configure /var/indimail/control/signatures 22. Configure SPAM filter configuration 23. Configure tcprules database for SMTP, IMAP, POP3, popass 24. Configure selinux configuration 25. Configure indimail startup 26. Configure default cron entries 1. Issue /bin/systemctl start indimail.service to start services 2. Change your default domain in /var/indimail/control/defaultdomain 3. You can optionally run the following command to verify installation sudo rpm -V indimail 4. You need to create CERTS for STARTTLS / SSL enabled IMAP/POP3. Run the following command to create the Certificate /var/indimail/sbin/svctool [email protected] --config=cert Look at /tmp/indimail-install.log for the installation log Verifying : perl-Net-Daemon-0.48-5.el7.noarch 1/10 Verifying : MariaDB-server-5.5.48-1.el7.centos.x86_64 2/10 Verifying : perl-IO-Compress-2.061-2.el7.noarch 3/10 Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 4/10 Verifying : MariaDB-client-5.5.48-1.el7.centos.x86_64 5/10 Verifying : indimail-1.9.1-2.1.x86_64 6/10 Verifying : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 7/10 Verifying : perl-DBI-1.627-4.el7.x86_64 8/10 Verifying : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 9/10 Verifying : perl-PlRPC-0.2020-14.el7.noarch 10/10 Installed: indimail.x86_64 0:1.9.1-2.1 Dependency Installed: MariaDB-client.x86_64 0:5.5.48-1.el7.centos MariaDB-server.x86_64 0:5.5.48-1.el7.centos perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 Complete! Create server certs =================== [root@indimail yum.repos.d]# /var/indimail/sbin/svctool [email protected] --config=cert Check MySQL service ================== [root@indimail yum.repos.d]# ls -l /service/mysql.3306/ total 16 -rw-r--r--. 1 root root 0 Apr 13 06:18 down drwxr-xr-x. 2 root root 4096 Apr 13 06:18 log -rwxr-xr-x. 1 root root 988 Apr 13 06:18 run -r-x------. 1 root root 428 Apr 13 06:18 shutdown dr-x------. 2 root root 4096 Apr 13 06:18 variables Check IndiMail service ============================================== [root@indimail yum.repos.d]# systemctl status indimail.service ● indimail.service - IndiMail Messaging Platform Loaded: loaded (/usr/lib/systemd/system/indimail.service; enabled; vendor preset: disabled) Active: inactive (dead) Start IndiMail Service ======================================================== [root@indimail yum.repos.d]# service indimail start Starting indimail (via systemctl): OK [root@indimail yum.repos.d]# /var/indimail/bin/svc -u /service/mysql.3306/ [root@indimail yum.repos.d]# tail /var/log/indimail/mysql.3306/current @40000000570e1d7d18aadb84 160413 6:20:35 InnoDB: Initializing buffer pool, size = 128.0M @40000000570e1d7d18aae354 160413 6:20:35 InnoDB: Completed initialization of buffer pool @40000000570e1d7d18aae73c 160413 6:20:35 InnoDB: highest supported file format is Barracuda. @40000000570e1d7d21afc974 160413 6:20:35 InnoDB: Waiting for the background threads to start @40000000570e1d7e223dc134 160413 6:20:36 Percona XtraDB (http://www.percona.com) 5.5.47-MariaDB-37.7 started; log sequence number 1620391 @40000000570e1d7e223dd0d4 160413 6:20:36 [Note] Plugin 'FEEDBACK' is disabled. @40000000570e1d7e223dd4bc 160413 6:20:36 [Note] Server socket created on IP: '0.0.0.0'. @40000000570e1d7e22ab7b0c 160413 6:20:36 [Note] Event Scheduler: Loaded 0 events @40000000570e1d7e22ab82dc 160413 6:20:36 [Note] /usr/sbin/mysqld: ready for connections. @40000000570e1d7e22ab86c4 Version: '5.5.48-MariaDB' socket: '/tmp/mysql.sock' port: 3306 MariaDB Server Connect to MySQL =================================== [root@indimail yum.repos.d]# mysql -u indimail -pssh-1.5- Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 6 Server version: 5.5.48-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> quit Bye Ensure MySQL gets started after reboot or whenever IndiMail is started ===================================================================== [root@indimail yum.repos.d]# rm /service/mysql.3306/down rm: remove regular empty file ‘/service/mysql.3306/down’? y [root@indimail yum.repos.d]# Carry out Basic Virtual Domain operations =========================================== [root@indimail yum.repos.d]# declare -x PATH=$PATH:/var/indimail/bin:/var/indima il/sbin Add Domain ================== [root@indimail yum.repos.d]# vadddomain example.com passxxx Adding alias [email protected] --> [email protected] Adding alias [email protected] --> [email protected] ---- Domain example.com ------------------------------- domain: example.com uid: 555 gid: 555 Domain Dir: /var/indimail/domains/example.com Base Dir: /home/mail Dir Control = root/L2P cur users = 1 dir prefix = Users per level = 100 level_cur = 0 level_max = 3 level_index 0 = 0 1 = 0 2 = 0 level_start 0 = 0 1 = 0 2 = 0 level_end 0 = 61 1 = 61 2 = 61 level_mod 0 = 0 1 = 2 2 = 4 Users: 1 vlimits: disabled name : [email protected] passwd : xxxxxxxx (DES) uid : 1 gid : 0 -all services available gecos : prefilt dir : /home/mail/L2P/example.com/prefilt quota : 5242880 [5.00 Mb] curr quota : 0S,0C Mail Store IP : 10.0.2.15 (NonClustered - local) Mail Store ID : non-clustered domain Sql Database : localhost:indimail:ssh-1.5- Table Name : indimail Relay Allowed : NO Days inact : 0 days 00 Hrs 00 Mins 00 Secs Added On : ( 127.0.0.1) Wed Apr 13 06:21:26 2016 last auth : Not yet logged in last IMAP : Not yet logged in last POP3 : Not yet logged in PassChange : Not yet Changed Inact Date : Not yet Inactivated Activ Date : ( 127.0.0.1) Wed Apr 13 06:21:26 2016 Delivery Time : No Mails Delivered yet / Per Day Limit not configured name : [email protected] passwd : xxxxxxxx (DES) uid : 1 gid : 0 -all services available gecos : postfilt dir : /home/mail/L2P/example.com/postfilt quota : 5242880 [5.00 Mb] curr quota : 0S,0C Mail Store IP : 10.0.2.15 (NonClustered - local) Mail Store ID : non-clustered domain Sql Database : localhost:indimail:ssh-1.5- Table Name : indimail Relay Allowed : NO Days inact : 0 days 00 Hrs 00 Mins 00 Secs Added On : ( 127.0.0.1) Wed Apr 13 06:21:26 2016 last auth : Not yet logged in last IMAP : Not yet logged in last POP3 : Not yet logged in PassChange : Not yet Changed Inact Date : Not yet Inactivated Activ Date : ( 127.0.0.1) Wed Apr 13 06:21:26 2016 Delivery Time : No Mails Delivered yet / Per Day Limit not configured drwxr-x---. 2 indimail indimail 4096 Apr 13 06:21 /var/indimail/domains/example.com total 16 drwxr-x---. 2 indimail indimail 4096 Apr 13 06:21 . drwxrwxr-x. 4 root indimail 4096 Apr 13 06:21 .. -rw-r-----. 1 indimail indimail 9 Apr 13 06:21 .filesystems -rw-------. 1 indimail indimail 55 Apr 13 06:21 .qmail-default Add User ================== [root@indimail yum.repos.d]# [root@indimail yum.repos.d]# vadduser [email protected] passxxx name : [email protected] passwd : $1$bAbVywTw$74klbWNgpXxM3I/ir2Fu30 (MD5) uid : 1 gid : 0 -all services available gecos : testuser01 dir : /home/mail/T2Zsym/example.com/testuser01 (missing) quota : 5242880 [5.00 Mb] curr quota : 0S,0C Mail Store IP : 10.0.2.15 (NonClustered - local) Mail Store ID : non-clustered domain Sql Database : localhost:indimail:ssh-1.5- Table Name : indimail Relay Allowed : NO Days inact : 0 days 00 Hrs 00 Mins 00 Secs Added On : ( 127.0.0.1) Wed Apr 13 06:21:41 2016 last auth : Not yet logged in last IMAP : Not yet logged in last POP3 : Not yet logged in PassChange : Not yet Changed Inact Date : Not yet Inactivated Activ Date : ( 127.0.0.1) Wed Apr 13 06:21:41 2016 Delivery Time : No Mails Delivered yet / Per Day Limit not configured [root@indimail yum.repos.d]# vuserinfo [email protected] name : [email protected] passwd : $1$bAbVywTw$74klbWNgpXxM3I/ir2Fu30 (MD5) uid : 1 gid : 0 -all services available gecos : testuser01 dir : /home/mail/T2Zsym/example.com/testuser01 (missing) quota : 5242880 [5.00 Mb] curr quota : 0S,0C Mail Store IP : 10.0.2.15 (NonClustered - local) Mail Store ID : non-clustered domain Sql Database : localhost:indimail:ssh-1.5- Table Name : indimail Relay Allowed : NO Days inact : 0 days 00 Hrs 00 Mins 13 Secs Added On : ( 127.0.0.1) Wed Apr 13 06:21:41 2016 last auth : Not yet logged in last IMAP : Not yet logged in last POP3 : Not yet logged in PassChange : Not yet Changed Inact Date : Not yet Inactivated Activ Date : ( 127.0.0.1) Wed Apr 13 06:21:41 2016 Delivery Time : No Mails Delivered yet / Per Day Limit not configured Send Emails ================================================ [root@indimail yum.repos.d]# echo which mail /bin/mail [root@indimail yum.repos.d]# echo test | mail -s test [email protected] Check the delivery log ====================== [root@indimail yum.repos.d]# tail /var/log/indimail/deliver.25/current @40000000570e1d691c02b914 status: local 0/10 remote 0/20 queue5 @40000000570e1d691cae088c status: local 0/10 remote 0/20 queue3 @40000000570e1de52c79eaec new msg 796625 queue5 @40000000570e1de52c79f2bc info msg 796625: bytes 376 from <[email protected]> qp 17667 uid 0 queue5 @40000000570e1de52c79f6a4 local: [email protected] [email protected] 376 queue5 @40000000570e1de52c79f6a4 starting delivery 1: msg 796625 to local [email protected] queue5 @40000000570e1de52c79fa8c status: local 1/10 remote 0/20 queue5 @40000000570e1de52dfb7624 delivery 1: success: did_0+0+1/ queue5 @40000000570e1de52e54f064 status: local 0/10 remote 0/20 queue5 @40000000570e1de52e54f834 end msg 796625 queue5 Get the Virtual User's home directory ============================== [root@indimail yum.repos.d]# vuserinfo -d [email protected] dir : /home/mail/T2Zsym/example.com/testuser01 Check for the email in the user's home directory =============================================== [root@indimail yum.repos.d]# cd /home/mail/T2Zsym/example.com/testuser01/Maildir//new [root@indimail new]# ls -l total 4 -rw-------. 1 indimail indimail 550 Apr 13 06:22 1460542939.17671.indimail,S=550 [root@indimail new]# cat 1460542939.17671.indimail\,S\=550 Return-Path: <[email protected]> Delivered-To: [email protected] X-Filter: None Received: (indimail 17671 invoked by uid 555); Wed Apr 13 06:22:19 2016 Received: (indimail 17667 invoked by uid 0); Wed, 13 Apr 2016 06:22:19 -0400 Message-ID: <20160413102219.17666.indimail@indimail> From: [email protected] Date: Wed, 13 Apr 2016 06:22:19 -0400 To: [email protected] Subject: test User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit test Send another email to external domain ===================================== [root@indimail control]# echo test | mail -s testing [email protected] Check the delivery log ====================== [root@indimail control]# tail -f /var/log/indimail/deliver.25/current @40000000570e1e4c20332fdc starting delivery 3: msg 796627 to local @indimail queue3 @40000000570e1e4c20332fdc status: local 1/10 remote 0/20 queue3 @40000000570e1e4c2058fba4 delivery 3: success: queue3 @40000000570e1e4c20a77194 status: local 0/10 remote 0/20 queue3 @40000000570e1e4c20a7757c end msg 796627 queue3 @40000000570e1ea11a429e3c new msg 796136 queue3 @40000000570e1ea11a42a224 info msg 796136: bytes 372 from <[email protected]> qp 19748 uid 0 queue3 @40000000570e1ea11a42a60c remote: [email protected] [email protected] 372 queue3 @40000000570e1ea11a42a9f4 starting delivery 4: msg 796136 to remote [email protected] queue3 @40000000570e1ea11a42addc status: local 0/10 remote 1/20 queue3 @40000000570e1ea80d0e4324 delivery 4: success: From:_<[email protected]>_RCPT:_<[email protected]>_76.74.177.157_accepted_message_-_Protocol_SMTP./Remote_host_said:_250_ok_1460543134_qp_14511/ queue3 @40000000570e1ea80dca6b1c status: local 0/10 remote 0/20 queue3 @40000000570e1ea80dca76d4 end msg 796136 queue3 ^C Connect to IndiMail SMTP service ================================ [root@indimail control]# telnet 0 smtp bash: telnet: command not found... [root@indimail control]# yum install telnet Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.webwerks.com * centosplus: centos.webwerks.com * extras: centos.webwerks.com * updates: centos.excellmedia.net Resolving Dependencies --> Running transaction check ---> Package telnet.x86_64 1:0.17-59.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: telnet x86_64 1:0.17-59.el7 base 63 k Transaction Summary ================================================================================ Install 1 Package Total download size: 63 k Installed size: 113 k Is this ok [y/d/N]: y Downloading packages: Running transaction Installed: telnet.x86_64 1:0.17-59.el7 Complete! [root@indimail control]# telnet 0 smtp Trying 0.0.0.0... Connected to 0. Escape character is '^]'. 220 indimail.localdomain ESMTP Postfix quit 221 2.0.0 Bye Connection closed by foreign host. Remove Postfix =================== [root@indimail control]# systemctl disable postfix.service [root@indimail control]# service postfix stop Redirecting to /bin/systemctl stop postfix.service Check if IndiMail SMTP service is up ==================================== [root@indimail control]# svstat /service/qmail-smtpd.25/ /service/qmail-smtpd.25/: up (pid 20939) 6 seconds Connec to IndiMail SMTP service ================================ [root@indimail control]# telnet 0 smtp Trying 0.0.0.0... Connected to 0. Escape character is '^]'. 220 indimail (NO UCE) ESMTP IndiMail 1.185 Wed, 13 Apr 2016 06:27:09 -0400 ehlo 250-indimail [::ffff:127.0.0.1] 250-AUTH LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256 CRAM-SHA512 CRAM-RIPEMD DIGEST-MD5 250-AUTH=LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256 CRAM-SHA512 CRAM-RIPEMD DIGEST-MD5 250-PIPELINING 250-8BITMIME 250-SIZE 10000000 250-ETRN 250 HELP quit 221 indimail closing connection Connection closed by foreign host. Connect to IndiMail IMAP Service ================================ [root@indimail control]# telnet 0 143 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. * OK IMAP4rev1 Server Ready. a1 login [email protected] passxxx a1 OK LOGIN Ok. a1 logout * BYE IMAP4rev1 server shutting down a1 OK LOGOUT completed Connection closed by foreign host. [root@indimail control]# vuserinfo -d [email protected] dir : /home/mail/T2Zsym/example.com/testuser01 [root@indimail control]# vuserinfo [email protected] name : [email protected] passwd : $1$bAbVywTw$74klbWNgpXxM3I/ir2Fu30 (MD5) uid : 1 gid : 0 -all services available gecos : testuser01 dir : /home/mail/T2Zsym/example.com/testuser01 quota : 5242880 [5.00 Mb] curr quota : 550S,1C Mail Store IP : 10.0.2.15 (NonClustered - local) Mail Store ID : non-clustered domain Sql Database : localhost:indimail:ssh-1.5- Table Name : indimail Relay Allowed : NO Days inact : 0 days 00 Hrs 00 Mins 12 Secs Added On : ( 127.0.0.1) Wed Apr 13 06:21:41 2016 last auth : ( 127.0.0.1) Wed Apr 13 06:28:02 2016 last POP3 : Not yet logged in last IMAP : ( 127.0.0.1) Wed Apr 13 06:28:02 2016 PassChange : Not yet Changed Inact Date : Not yet Inactivated Activ Date : ( 127.0.0.1) Wed Apr 13 06:21:41 2016 Delivery Time : Wed Apr 13 07:22:19 2016 : (1 Mails, 550 Bytes [0 Kb]) Send a test email using Swaks using authenticated SMTP ====================================================== [root@indimail control]# swaks --to [email protected] --from [email protected] --auth plain -s localhost -au [email protected] -ap passxxx === Trying localhost:25... === Connected to localhost. <- 220 indimail (NO UCE) ESMTP IndiMail 1.185 Wed, 13 Apr 2016 06:29:43 -0400 -> EHLO indimail <- 250-indimail <- 250-AUTH LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256 CRAM-SHA512 CRAM-RIPEMD DIGEST-MD5 <- 250-AUTH=LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256 CRAM-SHA512 CRAM-RIPEMD DIGEST-MD5 <- 250-PIPELINING <- 250-8BITMIME <- 250-SIZE 10000000 <- 250-ETRN <- 250 HELP -> AUTH PLAIN AHRlc3R1c2VyMDFAZXhhbXBsZS5jb20AcGFzc3h4eA== <- 235 ok, go ahead (#2.0.0) -> MAIL FROM:<[email protected]> <- 250 ok -> RCPT TO:<[email protected]> <- 250 ok -> DATA <- 354 go ahead -> Date: Wed, 13 Apr 2016 06:29:43 -0400 -> To: [email protected] -> From: [email protected] -> Subject: test Wed, 13 Apr 2016 06:29:43 -0400 -> X-Mailer: swaks v20100211.0 jetmore.org/john/code/swaks/ -> -> This is a test mailing -> -> . <- 250 ok 1460543383 qp 21869 -> QUIT <- 221 indimail closing connection === Connection closed with remote host. Connect to IndiMail POP3 service ================================== [root@indimail control]# telnet 0 110 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. +OK POP3 Server Ready. user [email protected] +OK Password required. pass passxxx +OK logged in. list +OK POP3 clients that break here, they violate STD53. 1 566 . retr 1 +OK 566 octets follow. Return-Path: <[email protected]> Delivered-To: [email protected] X-Filter: None Received: (indimail 17671 invoked by uid 555); Wed Apr 13 06:22:19 2016 Received: (indimail 17667 invoked by uid 0); Wed, 13 Apr 2016 06:22:19 -0400 Message-ID: <20160413102219.17666.indimail@indimail> From: [email protected] Date: Wed, 13 Apr 2016 06:22:19 -0400 To: [email protected] Subject: test User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit test . quit +OK Phir Kab Miloge? Connection closed by foreign host. Connect to IndiMail SMTP Service ================================== [root@indimail control]# telnet 0 smtp Trying 0.0.0.0... Connected to 0. Escape character is '^]'. 220 indimail (NO UCE) ESMTP IndiMail 1.185 Wed, 13 Apr 2016 06:30:31 -0400 mail from:<[email protected]> 250 ok rcpt to:<[email protected]> 553 sorry, that domain isn't allowed to be relayed thru this MTA without authentication #5.7.1 quit 221 indimail closing connection Connection closed by foreign host. Connect to IndiMail SMTP Service on port 587 ================================== [root@indimail control]# telnet 0 587 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. 220 indimail (NO UCE) ESMTP IndiMail 1.185 Wed, 13 Apr 2016 06:31:12 -0400 mail from:<[email protected]> 530 authentication required (#5.7.1) quit 221 indimail closing connection Connection closed by foreign host. List all IndiMail Service under supervise ========================================= [root@indimail control]# ls -l /service/ total 96 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 fetchmail drwxr-xr-x. 5 root root 4096 Apr 13 06:20 greylist.1999 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 indisrvr.4000 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 inlookup.infifo drwxr-xr-x. 5 root root 4096 Apr 13 06:20 mysql.3306 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 proxy-imapd.4143 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 proxy-imapd-ssl.9143 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 proxy-pop3d.4110 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 proxy-pop3d-ssl.9110 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 pwdlookup drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-imapd.143 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-imapd-ssl.993 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-pop3d.110 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-pop3d-ssl.995 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-poppass.106 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-qmqpd.628 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-qmtpd.209 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-send.25 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-smtpd.25 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-smtpd.366 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-smtpd.465 drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qmail-smtpd.587 drwxr-xr-x. 4 root root 4096 Apr 13 06:20 qmail-spamlog drwxr-xr-x. 5 root root 4096 Apr 13 06:20 qscanq [root@indimail control]# svstat /service/* /service/fetchmail: down 691 seconds /service/greylist.1999: up (pid 16066) 691 seconds /service/indisrvr.4000: up (pid 22613) 1 seconds /service/inlookup.infifo: up (pid 16068) 691 seconds /service/mysql.3306: up (pid 16533) 671 seconds /service/proxy-imapd.4143: up (pid 16067) 691 seconds /service/proxy-imapd-ssl.9143: up (pid 16105) 691 seconds /service/proxy-pop3d.4110: up (pid 16075) 691 seconds /service/proxy-pop3d-ssl.9110: up (pid 16079) 691 seconds /service/pwdlookup: up (pid 16096) 691 seconds /service/qmail-imapd.143: up (pid 16087) 691 seconds /service/qmail-imapd-ssl.993: up (pid 16103) 691 seconds /service/qmail-pop3d.110: up (pid 16084) 691 seconds /service/qmail-pop3d-ssl.995: up (pid 16072) 691 seconds /service/qmail-poppass.106: up (pid 22614) 1 seconds /service/qmail-qmqpd.628: down 691 seconds /service/qmail-qmtpd.209: up (pid 16078) 691 seconds /service/qmail-send.25: up (pid 16098) 691 seconds /service/qmail-smtpd.25: up (pid 20939) 287 seconds /service/qmail-smtpd.366: up (pid 16064) 691 seconds /service/qmail-smtpd.465: up (pid 16091) 691 seconds /service/qmail-smtpd.587: up (pid 16077) 691 seconds /service/qmail-spamlog: up (pid 16071) 691 seconds /service/qscanq: up (pid 22154) 91 seconds Check env variables for SMTP Service ==================================== [root@indimail control]# cd /service/qmail-smtpd.25/variables/ [root@indimail variables]# ls -l total 136 -rw-r--r--. 1 root root 0 Apr 13 06:18 ANTISPOOFING -rw-r--r--. 1 root root 0 Apr 13 06:18 AUTH_ALL -rw-r--r--. 1 root root 56 Apr 13 06:18 AUTHMODULES -rw-r--r--. 1 root root 0 Apr 13 06:18 BADHELOCHECK -rw-r--r--. 1 root root 1 Apr 13 06:18 BODYCHECK -rw-r--r--. 1 root root 1 Apr 13 06:18 CHECKRECIPIENT -rw-r--r--. 1 root root 1 Apr 13 06:18 CHECKRELAY -rw-r--r--. 1 root root 8 Apr 13 06:18 CONTROLDIR -rw-r--r--. 1 root root 0 Apr 13 06:18 CUGMAIL -rw-r--r--. 1 root root 13 Apr 13 06:18 DEFAULT_DOMAIN -rw-r--r--. 1 root root 2 Apr 13 06:18 DISABLE_PLUGIN -rw-r--r--. 1 root root 1 Apr 13 06:18 DKIMVERIFY -rw-r--r--. 1 root root 29 Apr 13 06:18 DKQUEUE -rw-r--r--. 1 root root 1 Apr 13 06:18 DKVERIFY -rw-r--r--. 1 root root 0 Apr 13 06:18 DOMAIN_LIMITS -rw-r--r--. 1 root root 0 Apr 13 06:18 DOMAIN_MASQUERADE -rw-r--r--. 1 root root 0 Apr 13 06:18 ENFORCE_FQDN_HELO -rw-r--r--. 1 root root 2 Apr 13 06:18 LOCALIP -rw-r--r--. 1 root root 14 Apr 13 06:18 LOGFILTER -rw-r--r--. 1 root root 2 Apr 13 06:18 MAKE_SEEKABLE -rw-r--r--. 1 root root 1 Apr 13 06:18 MASQUERADE -rw-r--r--. 1 root root 3 Apr 13 06:18 MAXDAEMONS -rw-r--r--. 1 root root 3 Apr 13 06:18 MAXPERIP -rw-r--r--. 1 root root 9 Apr 13 06:18 MIN_FREE -rw-r--r--. 1 root root 0 Apr 13 06:18 NODNSCHECK -rw-r--r--. 1 root root 0 Apr 13 06:18 PARANOID -rw-r--r--. 1 root root 1 Apr 13 06:18 PASSWD_CACHE -rw-r--r--. 1 root root 32 Apr 13 06:18 PATH -rw-r--r--. 1 root root 3 Apr 13 06:18 PORT -rw-r--r--. 1 root root 0 Apr 13 06:18 QHPSI -rw-r--r--. 1 root root 27 Apr 13 06:18 QMAILQUEUE -rw-r--r--. 1 root root 0 Apr 13 06:18 QREGEX -rw-r--r--. 1 root root 1 Apr 13 06:18 QUERY_CACHE -rw-r--r--. 1 root root 20 Apr 13 06:18 QUEUE_BASE -rw-r--r--. 1 root root 2 Apr 13 06:18 QUEUE_COUNT -rw-r--r--. 1 root root 2 Apr 13 06:18 QUEUE_START -rw-r--r--. 1 root root 72 Apr 13 06:18 RBLCOMMAND -rw-r--r--. 1 root root 2 Apr 13 06:18 REJECTSPAM -rw-r--r--. 1 root root 0 Apr 13 06:18 REQUIREAUTH -rw-r--r--. 1 root root 10 Apr 13 06:18 SOFT_MEM -rw-r--r--. 1 root root 2 Apr 13 06:18 SPAMEXITCODE -rw-r--r--. 1 root root 53 Apr 13 06:18 SPAMFILTER -rw-r--r--. 1 root root 1 Apr 13 06:18 STARTTLS -rw-r--r--. 1 root root 1 Apr 13 06:18 USE_FSYNC -rw-r--r--. 1 root root 1 Apr 13 06:18 USE_SYNCDIR -rw-r--r--. 1 root root 2 Apr 13 06:18 VIRUSCHECK