Author Topic: Can not send emails  (Read 4064 times)

celine

  • Newbie
  • *
  • Posts: 6
    • View Profile
Can not send emails
« on: January 27, 2016, 10:27:06 AM »
Hello,
I have problems with my email account
I can receive mails but I can not send emails with one of my accounts.
I use Feng Office 3.4.0.7
I checked the parameters (from ovh)
I tried on another Feng, version 3.3.0.4, where I can send ! I compared parameters, there were the same (except feng office version)
I don't understand...
Has someone the same problem?
Have you an idea how to solve it ?
Thank you

steveg

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Re: Can not send emails
« Reply #1 on: January 27, 2016, 03:13:00 PM »
Are both versions on the same server?  Sounds like a configuration problem as emails work fine in 3.4.0.7 on our production server.

celine

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Can not send emails
« Reply #2 on: January 28, 2016, 06:42:00 AM »
thank you for the answer
they are both on o2switch, but on different accounts
could it be due to php configuration for exemple ?
thank you

steveg

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Re: Can not send emails
« Reply #3 on: January 28, 2016, 11:01:35 AM »
Are you trying to send emails via php or smtp?

It should be via smtp.  What I would do is review the mail logs after you send a test email to see what the error is.  If there is no error, then it's not even hitting the mail server, and we need to work backwards. 

Is the mailserver on the same account as the one that is working, by chance?

celine

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Can not send emails
« Reply #4 on: January 30, 2016, 06:00:15 PM »
no, sorry, I send via smtp !  ;D
the fact is : there is no error !
I'm not sure to understand your question.
Feng office is on one server o2switch, and the mailserver that causes problems for sending is on another from ovh
(I have others mail accounts, on the same server as Feng office, which have no problem!)
Was it what you meant?
thank you for your help!

(PS: sorry for my english, or not to all understand first, I'm french ;) )

steveg

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Re: Can not send emails
« Reply #5 on: February 03, 2016, 03:37:54 PM »
Feng office is on one server o2switch, and the mailserver that causes problems for sending is on another from ovh
(I have others mail accounts, on the same server as Feng office, which have no problem!)

It seems to me that the issue is the mailserver is not allowing connections from the FO on a different server.  Make sure you are using full authentication (sometimes you can bypass that on the same server), and that the mail ports are open (25) between the two machines.

This does not appear to be an issue with Feng Office, but your network configurations between the two machines.

celine

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Can not send emails
« Reply #6 on: February 04, 2016, 02:35:14 PM »
Hi !
thank for your answer, I will check what I am able to...

except that I tested with FO on another (o2switch) server, and I could send emails !...

so the situation is :
- FO 3.4.0.7 on server 1 => I can receive mail, not send
- FO 3.3.0.4 on server 2 => I can receive and send mails
- Mailserver on server 3

umina

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Can not send emails
« Reply #7 on: February 17, 2017, 09:48:20 PM »
If you are running your own server and it uses selinux you may try debuging by making selinux permissive.  In fact if its running selinux and you did not address the issue, that is probably your problem.

To test if selinux is the problem from root enter:

#setenforce permissive

Now try your email sending.  It will probably work.

There is a boolean to fix the problem of apache sending email, which makes the problem easy to address.

#setsebool -P httpd_can_sendmail 1

This sets a boolean which allows apache to send mail.  Its that simple.
Now turn selinux back on.

#setsebool enforcing

All should work fine now.  Beaware, that seting selinux to permissive  does not survive a reboot.  It will revert to enforcing.   To make it permanant accross reboots you must set the boolean.

/Len

 

anything