SMTP Permission Denied when sending test emails

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

SMTP Permission Denied when sending test emails

Post by villieb »

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
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

Re: SMTP Permission Denied when sending test emails

Post by villieb »

anyone...?
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

Re: SMTP Permission Denied when sending test emails

Post by villieb »

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...
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

Re: SMTP Permission Denied when sending test emails

Post by villieb »

I managed to figure this out. I disabled SELinux and the test email started working. It is now set to permissive.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SMTP Permission Denied when sending test emails

Post by gandalf »

There should be a SELinux setting that allows http to send emails.
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests