Afternoon all...
I hope someone can help...
I rebuilt my Cacti server, I was using Ubuntu now using Centos - the installation was pretty easy.
It's built and working normally apart from one thing... email alerts
I configured my SMTP server within Cacti, when sending a test email, I get a permission denied message, whereas on my previous build I was able to send messages.
From the cacti server, I can successfully telnet to my mail server on port 25 and able to send a message via CLI...
Can anybody help in troubleshooting this please?
Thanks
SMTP Permission Denied when sending test emails
Moderators: Developers, Moderators
Re: SMTP Permission Denied when sending test emails
I found a useful tool called tcpdump, so installed that and set it up so that it would monitor any connection attempts.
Below are the two captures when I tried to send a test email
[root@Cacti-Serv rra]# tcpdump -i eth0 host <IPofMailServ> and port 25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
8 packets received by filter
0 packets dropped by kernel
[root@Cacti-Serv etc]# tcpdump -i eth0 port 25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
It seems that a connection attempt isn't actually being made...
Below are the two captures when I tried to send a test email
[root@Cacti-Serv rra]# tcpdump -i eth0 host <IPofMailServ> and port 25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
8 packets received by filter
0 packets dropped by kernel
[root@Cacti-Serv etc]# tcpdump -i eth0 port 25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
It seems that a connection attempt isn't actually being made...
Re: SMTP Permission Denied when sending test emails
I managed to figure this out. I disabled SELinux and the test email started working. It is now set to permissive.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SMTP Permission Denied when sending test emails
There should be a SELinux setting that allows http to send emails.
R.
R.
Who is online
Users browsing this forum: No registered users and 3 guests