biagiopas
February 26th, 2016, 04:12 PM
Hello everybody,
I'm trying, so far unsuccessfully, to install sendmail smtp on developing laptop with ubuntu14.04 desktop, so to send email from php,
I followed this step by step guide for the installation of sendmail
http://lukepeters.me/blog/getting-the-php-mail-function-to-work-on-ubuntu
the file /etc/hosts file now looks like this
127.0.0.1 localhost
127.0.1.1 pcl-biagio
127.0.0.1 localhost localhost.localdomain pcl-biagio
...
where "pcl-biagio" is my hostname in ubuntu
php.ini
sendmail_path = /usr/sbin/sendmail -i -t
mail.log = /var/log/apache2/phpmail.log
The mail () function returns false and does not send
php mail.log shows no errors
however some errors are displayed by the sendmail service
biagio@pcl-biagio:/etc$ sudo service sendmail start
* Starting Mail Transport Agent (MTA) sendmail 554 5.0.0 /etc/mail/sendmail.cf: line 1: unknown configuration line "LOCAL_CONFIG"
451 4.0.0 /etc/mail/sendmail.cf: line 2: fileclass: cannot open 'ATURE(masquerade_envelope)LOCAL_CONFIG': No such file or directory
451 4.0.0 /etc/mail/sendmail.cf: line 4: fileclass: cannot open 'ATURE(use_cw_file)FEATURE(use_ct_file)FEATURE(smr sh)MAILER_DEFINITIONS': No such file or directory
554 5.0.0 /etc/mail/sendmail.cf: line 5: MAILER(local)MAILER(smtp): A= argument required
554 5.0.0 /etc/mail/sendmail.cf: line 6: unknown configuration line "LOCAL_CONFIG"
554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
$ sudo service sendmail status
MTA: is not running
QUE: Same as MTA
any suggestions?
I'm trying, so far unsuccessfully, to install sendmail smtp on developing laptop with ubuntu14.04 desktop, so to send email from php,
I followed this step by step guide for the installation of sendmail
http://lukepeters.me/blog/getting-the-php-mail-function-to-work-on-ubuntu
the file /etc/hosts file now looks like this
127.0.0.1 localhost
127.0.1.1 pcl-biagio
127.0.0.1 localhost localhost.localdomain pcl-biagio
...
where "pcl-biagio" is my hostname in ubuntu
php.ini
sendmail_path = /usr/sbin/sendmail -i -t
mail.log = /var/log/apache2/phpmail.log
The mail () function returns false and does not send
php mail.log shows no errors
however some errors are displayed by the sendmail service
biagio@pcl-biagio:/etc$ sudo service sendmail start
* Starting Mail Transport Agent (MTA) sendmail 554 5.0.0 /etc/mail/sendmail.cf: line 1: unknown configuration line "LOCAL_CONFIG"
451 4.0.0 /etc/mail/sendmail.cf: line 2: fileclass: cannot open 'ATURE(masquerade_envelope)LOCAL_CONFIG': No such file or directory
451 4.0.0 /etc/mail/sendmail.cf: line 4: fileclass: cannot open 'ATURE(use_cw_file)FEATURE(use_ct_file)FEATURE(smr sh)MAILER_DEFINITIONS': No such file or directory
554 5.0.0 /etc/mail/sendmail.cf: line 5: MAILER(local)MAILER(smtp): A= argument required
554 5.0.0 /etc/mail/sendmail.cf: line 6: unknown configuration line "LOCAL_CONFIG"
554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
$ sudo service sendmail status
MTA: is not running
QUE: Same as MTA
any suggestions?