how to setup sendmail Posted by liucougar 01 Dec 2004 04:24 UTC I just installed tikiwiki 1.8.5 (CVS) without any noticable problems except that I can not receive my registration confirm email. I have set the admin email but still can not get it. My host is the sourceforge.net Thanks
Posted by sylvie greverend 01 Dec 2004 11:43 UTC I took the liberty to copy / paste a message from redflo publish in the user list . An excellent message - thanks to redflo Hi, You should really try to find out why mail does not work. Here's my receipt: - check the maillog (/var/log/mail or similar) - check mails of the sender for Mailer-daemon mails (Non delivery notifications). Sender is probably owner of the webserver process. - check the mails of postmaster (root) - try to send a mail with unix-tools: * sendmail method: /usr/lib/sendmail re...@em... some text. End mail with a single dot . * mail utility: mail re...@em... Subject: bla some text. End mail with a single dot . Cc: These tools have some debug switches: mail -v will show you some details. - try to send a mail using telnet: telnet localhost smtp Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 some.hostname.com ESMTP Sendmail 8.12.11/8.12.11; Sat, 27 Nov 2004 00:53:58 +0100 ehlo bla.de 250-some.hostname.com Hello some.hostname.com 127.0.0.1, pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH CRAM-MD5 PLAIN LOGIN 250-DELIVERBY 250 HELP mail from: ww...@so... 250 2.1.0 ww...@so...... Sender ok rcpt to: so...@so... 250 2.1.5 so...@so...... Recipient ok data 354 Enter mail, end with "." on a line by itself some text . 250 2.0.0 iAQNrwjj014061 Message accepted for delivery quit 221 2.0.0 some.hostname.com closing connection Connection closed by foreign host. - next you should find out if php can send a mail. Write a php program: Note that these are only basic tests. email may not be trivial if there are mailrouting or relaying problems. Sending mail via a php-webdriven SMTPserver script is no good idea - it usually breaks rfc's as a mailserver may temporary reject your mail. Proper MTA's (Mail transfer agents) retry later. You cannot do that easily with a apache-php script. Today a growing number of SMTP servers use a feature called greylisting to avoid spam. The principle is to reject a mail temporary. If the MTA retries later again, the mail gets delivered. If the MTA does not try again, he is blacklisted, because most spammer-tools use a fire & forget mail system do do their job. So: do you want your IP blacklisted? No? Then use sendmail/postfix/exim/qmail .... even exchange can do the job 😊 Flo
Posted by Damian Parker 01 Dec 2004 09:05 UTC Yop, Check that the PHP is correctly configured. TikiWiki 1.8 uses the mail sending config setup in the PHP.ini file. -- Damian TikiWiki Development/Hosting/Support Services ** Christmas Offers Now Available **
Posted by liucougar 02 Dec 2004 01:18 UTC thanks for all your advice. But unfortunately, I can not see the log file in SF.net: I do not have such privilege. It seems to me that no other specific settings are needed for the tiki to send email properly I will try to write a simple php script and run it in sf to see what will happen. Thanks again. BTW: anyone out there use tikiwiki on sf.net hosts?
Posted by Damian Parker 02 Dec 2004 17:39 UTC Ive done 3 or 4 sourceforge installs for people. Never really had many problems. -- Damian TikiWiki Development/Hosting/Support Services ** Christmas Specials Now Available **