Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Mail-Service.xml setting for Qmail IMAP Server
Dear all,<br /><br />I have installed QMail server with IMAP enabled.<br /><br />However, there is a strange situaton I am now dealing with, here is my mail-service.xml:<br /><server><br /><mbean code="org.jboss.mail.MailService" name="jboss:service=MailSession"><br /> <attribute name="JNDIName">mail/MailSession</attribute><br /> <attribute name="User">Nobody</attribute><br /> <attribute name="Password">Nothing</attribute><br /> <attribute name="Configuration"><br /> <configuration><br /> <property name="mail.store.protocol" value="imap" /><br /> <property name="mail.transport.protocol" value="smtp" /><br /> <property name="mail.imap.host" value="192.168.0.111" /><br /> <property name="mail.smtp.host" value="smtp.test.net" /><br /> <property name="debug" value="true" /><br /> </configuration><br /> </attribute><br /> </mbean><br /></server><br /><br /><br />I fail to connect with AUTHEN_FAIL from the console, however, when I put in a valid mail account name and password like "anthony" and "password", it works but I could put in other's mail account info, I could get others' email account box content. Do I miss some important configuration like portal.properties or else? What should I put it in:<br /><attribute name="User">???</attribute><br /><attribute name="Password">???</attribute><br /><br />or just leave it as it is?<br /><br />Thank you for your comment and advice. <!--emo&
--><img src='@theme_images_path@/emotions/laugh.gif' border='0' style='vertical-align:middle' alt='laugh.gif' /><!--endemo--> <br /><br />Regards,<br />Anthony<br />
as long as that user/pasword combo allows you to send mail, you should be ok.
as long as that user/pasword combo allows you to send mail, you should be ok.<br /><br /><br /><br /><br />Dear Michael,<br /><br />I am now talking about checking email for my account. <br />For these pairs of tag:<br /><attribute name="User">Nobody</attribute><br /><attribute name="Password">Nothing</attribute><br /><br />If I put in:<br /><attribute name="User">Anthony</attribute><br /><attribute name="Password">Password</attribute><br /><br />I could check Anthony's mail box, if I put my friend's account login and password in mail-service.xml, I could check his email account, it is a problem I am now suffering from. However, if there are several email accounts already set up, do I need to make more entries in Mail-Service.xml file? If so, what is the syntax? I have tried <attribute name="Users">...</attribute> by referring to JBoss web site but it seems it fails <br /><br />Regards,<br />Anthony<br />
The jboss mail service typically isn't used for checking mail, just sending mail. You probably should not be configuring per-user settings in the appserver anyway.
The jboss mail service typically isn't used for checking mail, just sending mail. You probably should not be configuring per-user settings in the appserver anyway.<br /><br /><br /><br />Dear Michael,<br /><br />Could you please advise me how to implement the per-user check mail setting in Liferay? <!--emo&
you need to configure the imap servers explained here:<br /><br /><a href='http://www.liferay.com/cms/servlet/DOCUMENTATION-DEVELOPMENT-MAIL' target='_blank'>http://www.liferay.com/cms/servlet/DOCUMEN...EVELOPMENT-MAIL</a>
Dear Michael,<br /><br />Could you please advise me how to implement the per-user check mail setting in Liferay? <!--emo&<br /><br />Dear All<br /><br />The answer is given here <a href='http://forums.liferay.com/lofiversion/index.php/t329.html' target='_blank'>http://forums.liferay.com/lofiversion/index.php/t329.html</a><br /><br />I think some of the confusion may be caused by the fact that by default, we login using the email address of the account. As such, some ppl may have chosen autogenerate or used some arbitary name for the User ID field when adding a user account. <br /><br />Using joebloggs@interbiztech.com as an example<br /><br />The user id MUST match the username of your IMAP account (i.e. joebloggs), and the password of Liferay account MUST match the IMAP account password.<br /><br />Further, you need to make sure you have added your mail domain (i.e. interbiztech.com) to Mail Host Names in Admin --> Users<br /><br />et Voila, things should work <!--emo&--><img src='@theme_images_path@/emotions/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> <br /><br />Regards,<br />Anthony<br /><br />
I had to create my own AccountFinder (check portal.properties) so I could form a userId as the full email address. By default the userId does not include the domain. Should I do this some other way?<br /><br />Anyways, I'm through with this issue and my custom AccountFinder solved the problem.<br /><br />Cheers,<br />Marco
Community
Company
Feedback