LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-01-2017, 01:40 PM   #1
nandhu.mjs
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
qmail CentOS 7.3 SELinux enforcing


What contexts I should set for qmail to send mail to external mailbox somebody@gmail.com
 
Old 06-05-2017, 01:39 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,290

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Qmail? you're brave. I did that to myself once. Have you seen
http://lifewithqmail.org/
 
Old 06-06-2017, 11:44 PM   #3
nandhu.mjs
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I am running CentOS 7.3 on a VPS remote server. I have set up Postfix, Exim, and qmail. Dovecot & SSL active. All installations & configuration as per source documentation. They all, Postfix, Exim, and qmail, work (one at a time enabled) sending mails to & receive mails from local users. Mails to external users get sent with no error messages but are not received at destination mailbox. I have tried with SELinux enforcing & disabled. Firewall enabled & disabled. All required tcp ports open. Can anybody help please ?
 
Old 06-08-2017, 04:48 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,290

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
We note your ability to set up mailers.

Quote:
All installations & configuration as per source documentation
With qmail, the above is your problem. DJB is a networking genius. To quote John Dryden

Quote:
Great Wits are sure to madness near allied,
And thin partitions do their bounds divide.
I'll refrain from frank opinions on a moderated forum; the user is not at the forefront of concerns in the case of qmail. You are better following the site I gave you.
 
Old 06-08-2017, 05:34 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Mails to external users get sent with no error messages but are not received at destination mailbox. I have tried with SELinux enforcing & disabled. Firewall enabled & disabled. All required tcp ports open.
Do you have a valid domain? Also does the MX record points to your mailerver? What gives
Code:
dig mx yourdomain.com
You should also check the logs (usually /var/log/maillog), to see if you find something

Regards

Last edited by bathory; 06-08-2017 at 08:17 AM. Reason: typos
 
Old 06-09-2017, 09:37 AM   #6
nandhu.mjs
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I sincerely appreciate your reply and enjoyed the quote & and the implied transfer too :-))

Yes, I have a valid domain name. I had not tried dig. Will do so and get back to you

For a frank unmoderated opinion, I can post my mail id ;-))

Frivolities apart, could you please help me sort it out with postfix ?

Thank you with regards
 
Old 06-09-2017, 12:09 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by business_kid View Post
I'll refrain from frank opinions on a moderated forum; the user is not at the forefront of concerns in the case of qmail. You are better following the site I gave you. [which was http://lifewithqmail.org/]
LWQ is a good resource. Please also look at https://qmail.jms1.net/
Quote:
Originally Posted by nandhu.mjs View Post
Mails to external users get sent with no error messages but are not received at destination mailbox. I have tried with SELinux enforcing & disabled. Firewall enabled & disabled. All required tcp ports open. Can anybody help please ?
If email is sent with no errors or BOUNCEs, then they are received, by definition... Are you sure there were no errors? Are the outbound messages queued? Does
Code:
qmailctl queue
work on your installation? If not, run
Code:
qmail-qstat
qmail-qread
to see if the outgoing messages are queued...out of the box, qmail will wait 7 days before telling you that an email can't be delivered (that can be shortened...see LWQ or DJB documentation, or ask how here...)
In a LWQ/JMS/typical installation, the send logs are at /var/log/qmail/* cat /var/log/qmail/current (or tail -f as you send mail) to see what's actually happening.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS6: Dovecot LDA and SELinux in enforcing suky57 Linux - Security 1 01-31-2016 05:23 PM
SELinux enforcing causing IP issues... cowmoo32 Linux - Networking 11 03-20-2014 01:07 PM
selinux enforcing mode preventing download of file ginda Linux - Server 12 01-25-2012 03:01 PM
nagios - SELINUX [enforcing mode ] fritz001 Linux - Networking 6 01-12-2012 04:38 PM
Apache/PHP problems with Selinux enforcing.... maxie_fc3 Fedora 0 01-11-2005 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 08:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration