Added xspam header in email. Fixed select option work.
You dont need to install it. Just download script with git clone Brijendrasial/CentMinMod_MailServer cd CentMinMod_MailServer chmod 0777 CMM_Email.sh ./CMM_Email.sh This will show you options to install necessary softwares.
what is the port number and host address and method of authentication i should set in my app to access the mail server for sending mail after installing it on my server. do this will handle bounce email automatically when i set address for bounce email in my app or do i need to manually edit postfix configuration file to setting it up.
I made small changes in the script to enable port 587 and 465 for outgoing mail server. Both port will only open when 2nd option is installed i.e amavisd, spamassasin and clamav. Host address will be your server hostname and port number you can see here A List of SMTP and IMAP Servers. You can set the authentication as described here. For the preinstalled application please run the below command to open ports. Now restart postfix To check if port 465 and 587 is open Output may be as below
Amavisd header check fixed "Missing required header field: "Date"" and updated on git For preinstalled versions run the below command Restart amavisd
I get below error on installing addon Code: Complete! ./CMM_Email.sh: line 406: freshclam: command not found Redirecting to /bin/systemctl start spamassassin.service Note: Forwarding request to 'systemctl enable spamassassin.service'. Created symlink from /etc/systemd/system/multi-user.target.wants/spamassassin.service to /usr/lib/systemd/system/spamassassin.service. Redirecting to /bin/systemctl restart amavisd.service Note: Forwarding request to 'systemctl enable amavisd.service'. Created symlink from /etc/systemd/system/multi-user.target.wants/amavisd.service to /usr/lib/systemd/system/amavisd.service. Redirecting to /bin/systemctl restart clamd@amavisd.service Failed to restart clamd@amavisd.service: Unit not found. error reading information on service clamd@amavisd: No such file or directory Redirecting to /bin/systemctl restart postfix.service
Code: 321 packages excluded due to repository priority protections Excluding 1 update due to versionlock (use "yum versionlock status" to show it) repo id repo name status base/7/x86_64 CentOS-7 - Base 7,730+2,289 centos-sclo-rh/x86_64 CentOS-7 - SCLo rh 8,379+93 centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo 801 *epel/x86_64 Extra Packages for Enterprise Linux 7 - x86 12,406+972 extras/7/x86_64 CentOS-7 - Extras 435 mariadb MariaDB 106+11 percona-release-x86_64/7 Percona Original release/x86_64 YUM reposit 1,782+42 rpmforge RHEL 7 - RPMforge.net - dag 135+110 updates/7/x86_64 CentOS-7 - Updates 1,989+511 repolist: 33,763
epel repository is responsible for clamav. What you get when you run the below command yum install clamav
Code: 321 packages excluded due to repository priority protections Excluding 1 update due to versionlock (use "yum versionlock status" to show it) No package clamav available. Error: Nothing to do do i need to enable selinux
Code: 321 packages excluded due to repository priority protections Excluding 1 update due to versionlock (use "yum versionlock status" to show it) No package clamav available. Error: Nothing to do same error is shown
clamav is part of epel repository and its enabled too. Even we forced it to be enabled then also it is showing no package found weird.
email sent from round cube now start in subject line with ***UNCHECKED*** mail log showing Code: Passed UNCHECKED {RelayedTaggedInternal}, MYNETS LOCAL [127.0.0.1]:31212 <myname@mydomain.com> -> <mydomain@gmail.com>, Queue-ID: 00E2C601A4B2, Message-ID: <5e2310a8ff33e78ffce722b8939aed9e@mydomain.com>, mail_id: ftP7UFZYwMLc, Hits: 1.548, size: 1011, queued_as: 9994D601A4B3, 9534 ms Sep 4 09:51:08 myhost postfix/lmtp[16596]: 00E2C601A4B2: to=<mydomain@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=9.7, delays=0.1/0.01/0.01/9.5, 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 9994D601A4B3) Sep 4 09:51:08 myhost postfix/qmgr[15669]: 00E2C601A4B2: removed Sep 4 09:51:09 myhost postfix/smtp[16618]: connect to gmail-smtp-in.l.google.com[2404:6800:4003:c03::1a]:25: Network is unreachable Sep 4 09:51:10 myhost postfix/smtp[16618]: Untrusted TLS connection established to gmail-smtp-in.l.google.com[74.125.24.27]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits) Sep 4 09:51:10 myhost postfix/smtp[16618]: 9994D601A4B3: to=<mydomain@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.24.27]:25, delay=2.3, delays=0/0.01/1.7/0.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1567590670 c9si1888893pjo.109 - gsmtp) Sep 4 09:51:10 myhost postfix/qmgr[15669]: 9994D601A4B3: removed another one Code: Sep 4 09:52:01 myhost dovecot: imap-login: Login: user=<myname@mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=16674, secured, session=<EfgeKLeRIlp/AAAB> Sep 4 09:52:01 myhost dovecot: imap(myname@mydomain.com): Logged out in=117 out=958 Sep 4 09:52:12 myhost postfix/qmgr[15669]: F0B344428F34: from=<myname@mydomain.com>, size=1009, nrcpt=1 (queue active) Sep 4 09:52:12 myhost amavis[15693]: (15693-02) (!)connect to /var/run/clamd.amavisd/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamd.amavisd/clamd.sock: No such file or directory Sep 4 09:52:13 myhost amavis[15693]: (15693-02) (!)connect to /var/run/clamd.amavisd/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamd.amavisd/clamd.sock: No such file or directory Sep 4 09:52:13 myhost amavis[15693]: (15693-02) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamd.amavisd/clamd.sock, retrying (2) Sep 4 09:52:19 myhost amavis[15693]: (15693-02) (!)connect to /var/run/clamd.amavisd/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamd.amavisd/clamd.sock: No such file or directory Sep 4 09:52:19 myhost amavis[15693]: (15693-02) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamd.amavisd/clamd.sock (All attempts (1) failed connecting to /var/run/clamd.amavisd/clamd.sock) at (eval 132) line 659.\n Sep 4 09:52:19 myhost amavis[15693]: (15693-02) (!)WARN: all primary virus scanners failed, considering backups Sep 4 09:52:19 myhost amavis[15693]: (15693-02) (!!)AV: ALL VIRUS SCANNERS FAILED Sep 4 09:52:21 myhost postfix/smtpd[16346]: timeout after END-OF-MESSAGE from localhost[127.0.0.1] Sep 4 09:52:21 myhost postfix/smtpd[16346]: disconnect from localhost[127.0.0.1] Sep 4 09:52:21 myhost postfix/smtpd[16346]: connect from localhost[127.0.0.1] Sep 4 09:52:21 myhost postfix/smtpd[16346]: BC291601A4B2: client=localhost[127.0.0.1] Sep 4 09:52:21 myhost postfix/cleanup[16595]: BC291601A4B2: message-id=<99ebfdda69ae184de9ab63f525428691@mydomain.com> Sep 4 09:52:21 myhost postfix/smtpd[16346]: disconnect from localhost[127.0.0.1] Sep 4 09:52:21 myhost postfix/qmgr[15669]: BC291601A4B2: from=<myname@mydomain.com>, size=2237, nrcpt=1 (queue active) Sep 4 09:52:21 myhost amavis[15693]: (15693-02) Passed UNCHECKED {RelayedTaggedInternal}, MYNETS LOCAL [127.0.0.1]:22346 <myname@mydomain.com> -> <mydomain@gmail.com>, Queue-ID: F0B344428F34, Message-ID: <99ebfdda69ae184de9ab63f525428691@mydomain.com>, mail_id: Hs1GqOFEEo8K, Hits: 1.549, size: 1356, queued_as: BC291601A4B2, 9764 ms Sep 4 09:52:21 myhost postfix/lmtp[16596]: F0B344428F34: to=<mydomain@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=63021, delays=63011/0/0/9.8, 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 BC291601A4B2) Sep 4 09:52:21 myhost postfix/qmgr[15669]: F0B344428F34: removed Sep 4 09:52:23 myhost postfix/smtp[16618]: Untrusted TLS connection established to gmail-smtp-in.l.google.com[74.125.24.26]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits) Sep 4 09:52:24 myhost postfix/smtp[16618]: BC291601A4B2: to=<mydomain@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.24.26]:25, delay=2.3, delays=0/0/1.6/0.61, dsn=2.0.0, status=sent (250 2.0.0 OK 1567590743 h5si1882021pjq.84 - gsmtp) Sep 4 09:52:24 myhost postfix/qmgr[15669]: BC291601A4B2: removed Sep 4 09:53:01 myhost dovecot: imap-login: Login: user=<myname@mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=16747, secured, session=<L5+zK7eR4lp/AAAB> Sep 4 09:53:01 myhost dovecot: imap(myname@mydomain.com): Logged out in=117 out=958 Sep 4 09:54:01 myhost dovecot: imap-login: Login: user=<myname@mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=16803, secured, session=<j2dGL7eRmlt/AAAB> Sep 4 09:54:01 myhost dovecot: imap(myname@mydomain.com): Logged out in=117 out=966 Sep 4 09:55:01 myhost dovecot: imap-login: Login: user=<myname@mydomain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=16860, secured, session=<Z8fZMreRLlx/AAAB>