Problem to send mail with XWiki and Sendmail
Hi, I'd like to build a small application that should send emails. XWiki is installed on a Redhat Linux 4 with Sendmail 8.13.1. When I try a simple example to send email I get the following error message from XWiki : Error number 4001 in 4: Error while parsing velocity page Demos.test Wrapped Exception: Invocation of method 'sendMessage' in class com.xpn.xwiki.XWiki threw exception class com.xpn.xwiki.XWikiException : Error number 10005 in 10: Could not login to mail server localhost port 25 error code 501 (501 5.0.0 Invalid domain name ) com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Demos.test Wrapped Exception: Invocation of method 'sendMessage' in class com.xpn.xwiki.XWiki threw exception class com.xpn.xwiki.XWikiException : Error number 10005 in 10: Could not login to mail server localhost port 25 error code 501 (501 5.0.0 Invalid domain name ... In fact after looking for the problem in my sendmail conf, I discover that the problem come from the domain name indicated by XWiki which avoid XWiki to connect to sendmail : 'HELO XWiki version 0.9.840' I would like to know if there is a way to change the XWiki domain name or to tell sendmail to accept wrong domain name. In my sendmail config, I've put this : FEATURE(`accept_unresolvable_domains')dnl But it still doesn't work. Thanks a lot -- Xavier MOGHRABI - Consortium ObjectWeb -- Sendmail debug trace : obispeno sendmail[17999]: NOQUEUE: connect from obispeno.inria.fr [127.0.0.1] obispeno sendmail[17999]: AUTH: available mech=CRAM-MD5 LOGIN DIGEST-MD5 ANONYMOUS PLAIN, allowed mech=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5 obispeno sendmail[17999]: j9JHQANM017999: Milter: no active filter obispeno sendmail[17999]: j9JHQANM017999: --- 220 obispeno.inria.fr ESMTP Sendmail 8.13.1/8.13.1; Wed, 19 Oct 2005 19:26:10 +0200 obispeno sendmail[17999]: j9JHQANM017999: <-- HELO XWiki version 0.9.840 obispeno sendmail[17999]: j9JHQANM017999: --- 501 5.0.0 Invalid domain name obispeno sendmail[17999]: j9JHQANM017999: invalid domain name (XWiki) from obispeno.inria.fr [127.0.0.1] obispeno sendmail[17999]: j9JHQANM017999: --- 421 4.4.1 obispeno.inria.fr Lost input channel from obispeno.inria.fr [127.0.0.1] obispeno sendmail[17999]: j9JHQANM017999: obispeno.inria.fr [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Hi With define(`confALLOW_BOGUS_HELO',`True')dnl in my sendmail.mc config file I can send mail with my main XWiki host. However I use a XWiki virtual host installation, with 2 hosts, and with the virtual host I can't send mails ! It works well with the main primary host. Any Idea ? I don't get any error neither in sendmail logs nor in tomcat logs. Regards -- Xavier MOGHRABI - Consortium ObjectWeb Email: xavier.moghrabi at objectweb.org
Hi Xavier, The line HELO XWiki... is hardcoded in the Java code.. You will need to change this and see if it works without it.. We can make this a parameter from xwiki.cfg and even remove it Ludovic Xavier MOGHRABI a écrit :
Hi
With define(`confALLOW_BOGUS_HELO',`True')dnl in my sendmail.mc config file I can send mail with my main XWiki host.
However I use a XWiki virtual host installation, with 2 hosts, and with the virtual host I can't send mails ! It works well with the main primary host. Any Idea ?
I don't get any error neither in sendmail logs nor in tomcat logs.
Regards
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
participants (2)
-
Ludovic Dubost -
Xavier MOGHRABI