mail() does not work

crac - August 23, 2005 - 08:02
Project:Simplenews
Version:4.6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Mail delivery does not work with my MTA. Im using qmail and the normal drupal mail-delivery works without any problems. Unfortunately there are no error-messages ...

The same applies to mail.module which also uses activemaillib. I assume the problem lies there.

PS: Previous forum topic about that issue: http://drupal.org/node/29113

#1

DriesK - August 23, 2005 - 08:42
Category:bug report» support request
Priority:critical» normal

I'm afraid we can't help if you don't provide more information (e.g. your OS, PHP version,...).

Both Drupal's user_mail() and activeMailLib.php use PHP's mail() function to send mail. Since I can't reproduce it, I have no place to start looking. It indeed seems related to activeMailLib as you experience the same with mail.module, but probably also a system specific component is involved because nobody else reported this problem so far.

In your forum topic you wondered why we don't use user_mail(): that is because with activeMailLib it is easier to set extra headers, and because it supports attachments (a feature not yet implemented in Simplenews however, see http://drupal.org/node/28908 and http://drupal.org/node/28604).

#2

crac - August 23, 2005 - 10:52

Ok, here are some further infos:

- OS: mandrake linux 10.0 with
- PHP: patched version of 4.3.4 (distro specific)

I also tried playing with the following options in .htaccess:

php_value SMTP "xxx.xxx.xxx.xxx"
php_value sendmail_path "/var/qmail/bin/sendmail"
php_value sendmail_from "xxx@mydomain.com"

But I think I found the problem: Somehow the sender gets set wrongly. Here the output of my qmail logfiles:

- starting delivery 5427: msg 179855 to remote user@destination.com
- status: local 0/10 remote 2/60
- delivery 5427: failure: Connected_to_62.2.95.11_but_sender_was_rejected./Remote_host_said:_553_5.1.2_<anonymous@.mydomain.com>..._Invalid_host_name/

Why anonymous@.mydomain.com? This is not the addess I specified in the settions. Futhermore why that . (dot) in front of the domain name?

#3

crac - August 23, 2005 - 11:08

I also tried this, but it still uses the strange sender:

php_value sendmail_path "/usr/sbin/sendmail -t -fxxx@domain.com"

#4

crac - August 29, 2005 - 14:20

ok, I give it up, didnt found a solution ... my mail-server seems not to be the probem, therefore I assume its really a module-bug.

#5

DriesK - November 20, 2005 - 20:33
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.