CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • USing SMTPputs addresses on hold
Pages: [1]

Author Topic: USing SMTPputs addresses on hold  (Read 1401 times)

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
USing SMTPputs addresses on hold
June 16, 2010, 02:04:31 am
Due to a security issue we turned of passthru , exec etc on our server.

This seems to have led to sendmail not working in CiviCRM 3.1 Joomla 1.5 although it appears to work fine in Joomla (i think its really phpmailer)

So i tried using smtp and testing - testing thru admin works fine.

However any sending theu CiviMail turns each person on the lists on_hold value to 1.

We never had an issue before and it seems only smtp setup does this. There seems enough buzz on forum about this - is it a qualifiable bug? IS phpmail available yet in latest stable?

All our heads are spinning as event receipt emails  are not being issued.

Any light shone welcome

alanski

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: USing SMTPputs addresses on hold
June 17, 2010, 02:35:56 am
There were a couple of issues with the PEAR library we depend on not validating the headers properly; can you try with CiviCRM 3.1.5 (or update your forum profile if you’re not on 3.1.1)?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: USing SMTPputs addresses on hold
June 17, 2010, 02:49:37 am
Thanks Piotr
We are on 3.1.3

So does CiviMail depend on exec or passthur to work?

IS the pear issues also responsible for potential sendmail  failure or just SMTP?

thanks


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: USing SMTPputs addresses on hold
June 17, 2010, 06:26:41 am
Quote from: alanski on June 17, 2010, 02:49:37 am
We are on 3.1.3

It’s known to have issues with contacts with names outside [a-zA-Z] and with sending emails to contacts without a name (email-only ones), so it’d be best to upgrade to 3.1.5.

Quote
So does CiviMail depend on exec or passthur to work?

No, I don’t think so.

Quote
IS the pear issues also responsible for potential sendmail  failure or just SMTP?

IIRC, every email goes through PEAR’s validation, so the problems with pre-3.1.5 CiviCRM versions will probably manifest themselves with all backends.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: mailing send on hold fixed but verp and smtp not playing nicely
June 17, 2010, 01:08:49 pm
So I have upgraded to 3.1.5.

My server guys (managed server) have disabled the following : exec, passthru, system, popen, pclose, proc_open, proc_close, shell_exec

Can someone state for a fact that these are not required for civi mail?

Assuming not , my test send via smtp works but the send test via CiviMail [step 4 of 5] fails.

I can confirm that the solution posted here does seem to solve the problem.Basically destroying bounce handling i guess. The mail server is exim I think.

What is the longer term fix for this?
phpmailer?

thanks all

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: USing SMTPputs addresses on hold
June 17, 2010, 03:34:52 pm

1. you'll need to go in and check the PEAR mail libraries to see if they use any of the below functions. I dont think any of us can confirm that those functions are used / not-used in civicrm

2. the longer term solution is probably getting a better hosting provider who gives you more control over your mailing headers

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: USing SMTPputs addresses on hold
June 18, 2010, 12:35:21 am
Thanks Lobo
hosting is not the issue- it's our box we can setup as we need (dedicated managed server).

I am just sure what we need to change in order for verp/civicrm  friendly headers.
I expect smtp server on LAMP is fairly standard. Is this where the config change needs to start?
If so then great! Let's post our smtp configs and compare - or whatever config is needed ,eg os level stuff. I am happy to post blog broadcast video tweet about it :)

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: mailing send on hold fixed but verp and smtp not playing nicely
June 18, 2010, 08:34:29 am
Quote from: alanski on June 17, 2010, 01:08:49 pm
My server guys (managed server) have disabled the following : exec, passthru, system, popen, pclose, proc_open, proc_close, shell_exec

Can someone state for a fact that these are not required for civi mail?

I just grepped packages and Mail/sendmail.php uses popen() and pclose(), but others don’t seem to use any of the above (well, PEAR/Command/Package.php obviously uses most of the above, but it’s not a dependency of the Mail classes).

Quote
I can confirm that the solution posted here does seem to solve the problem. Basically destroying bounce handling i guess. The mail server is exim I think.

What is the longer term fix for this?

Check the logs and see why your mailserver does not like the bounce (VERP-ed) SMTP envelope FROM (i.e., emails’ Return-Path) headers; most probably it has a whitelist of accepted ‘senders’ (maybe only existing accounts…?), and you need to expand that whitelist a bit. :)
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • USing SMTPputs addresses on hold

This forum was archived on 2017-11-26.