Hi I configured Koha to send email when one items is placed hold, but i don't receive nothing. Sendmail is working becouse if i try to send email directly from the server I received it. I'm using koha 3.4.1 Thanks a lot Daniel -- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4427932.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
any ideas? -- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4431367.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 26/05/2011 10:42, schwitzd a écrit :
Hi
I configured Koha to send email when one items is placed hold, but i don't receive nothing. Sendmail is working becouse if i try to send email directly from the server I received it.
I'm using koha 3.4.1
Thanks a lot Daniel Hi Daniel,
messages are stored in a queue and sent by the script "process_message_queue" What do you have in message_queue SQL table ? (the status field is what you should look at) -- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : (33) 4 91 81 35 08
Hi Paul in the table there is 14 row. I have enabled the options that for each place hods send me one mail -- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4431393.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 26/05/2011 10:42, schwitzd a écrit :
Hi
I configured Koha to send email when one items is placed hold, but i don't receive nothing. Sendmail is working becouse if i try to send email directly from the server I received it.
I'm using koha 3.4.1
Thanks a lot Daniel
I think it is because your Mail::Sendmail module is not properly setup. You need to change it in the Sendmail.pm in order to add your smtp server in place of localhost. I think that koha could have some config param for smtp server (and not in sysprefs but in koha-conf.xml) and use that in the scripts. But when Sendmail is properly set up, it works fine. Hope that helps. -- Henri-Damien LAURENT
Hi I checked my koha-conf.xml and there is nothing about smtp server conf. In my sendmail.cf I add the mail server in the option # "Smart" relay host (may be null) DSsmtpservername can you please explain me how to configure sendmail.pm? thanks Daniel -- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4431449.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Meaby I have undertood what I have to configure. the file is located there /usr/share/perl5/Mail/Sendmail.pm right? and the contant that I have to modify is this
%mailcfg = ( # List of SMTP servers: 'smtp' => [ qw( localhost ) ], <----------- I have to put the name of the mail server? #'smtp' => [ qw( mail.mydomain.com ) ], # example
'from' => '', # default sender e-mail, used when no From header in mail
'mime' => 1, # use MIME encoding by default
'retries' => 1, # number of retries on smtp connect failure 'delay' => 1, # delay in seconds between retries
'tz' => '', # only to override automatic detection 'port' => 25, # change it if you always use a non-standard port 'debug' => 0 # prints stuff to STDERR );
-- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4431641.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi, On Fri, May 27, 2011 at 9:02 AM, schwitzd <schwitzd@gmail.com> wrote:
Meaby I have undertood what I have to configure. ... 'smtp' => [ qw( localhost ) ],
You need to put your mail servers FQDN or IP there (instead of 'localhost'). You should notice that several emails are sent in different ways in koha. For example notices are sent when a cronjob runs process_message_queue.pl. The sender address is taken from those variables you mention in other email, so the SMTP server should rely email from those addresses. Regards To+
Hi Tomas If I understood correctly I have to create a cronjob that execute this process_message_queue.pl perl page, right? Have you one cron job example to show me? you suggest to run it every 10 min or more? You spoke about different way to send e mail via Koha can you explain me? Thanks Daniel -- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4441090.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Now is working! Thanks a lot for your help! -- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4441340.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi, Great. Can you please summarize so that it will help all of us? Thanks & Regards, Somasekhar Rao K On Tue, May 31, 2011 at 2:16 PM, schwitzd <schwitzd@gmail.com> wrote:
Now is working!
Thanks a lot for your help!
-- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4441340.html Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hi I added my smtp server in this file /usr/share/perl5/Mail/Sendmail.pm & I added this line to the crontab 0 */1 * * * perl /usr/share/koha/bin/cronjobs/process_message_queue.pl Daniel -- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4442004.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi, Require help in configuring the mail on Koha. I wanted to use email of Google apps. For this I have configured google apps for my domain. 1. Let us assume the domain name is abc.com MX records were created as per Google apps for abc.com. And the mail address is admin@abc.com I can send mails and receive mails from different mail ids. The mail concept is working. 2. I am trying to configure in Koha. Configured KohaAdminEmailAddress to admin@abc.com in System preferences. 3. In Sendmail.pm, I have configured it as follows. 'smtp' => [ qw( abc.com ) ], and enabled 0 */1 * * * perl /usr/share/koha/bin/cronjobs/ process_message_queue.pl in crontab. 4. I am still unable to send mails from Koha. Can you please tell me what I am missing. Thanks, Somasekhar Rao K On Tue, May 31, 2011 at 7:18 PM, schwitzd <schwitzd@gmail.com> wrote:
Hi
I added my smtp server in this file /usr/share/perl5/Mail/Sendmail.pm & I added this line to the crontab 0 */1 * * * perl /usr/share/koha/bin/cronjobs/process_message_queue.pl
Daniel
-- View this message in context: http://koha.1045719.n5.nabble.com/Mail-from-koha-tp4427932p4442004.html Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Somasekhar Rao K schreef op ma 18-07-2011 om 12:29 [+0530]:
3. In Sendmail.pm, I have configured it as follows. 'smtp' => [ qw( abc.com ) ],
I really think this is a terrible way to do this. Three concrete reasons, excluding the fact that it just feels wrong: * it will delay the queue process while it talks to the remote server to send messages. Depending on exactly how it works, this may cause duplicate messages, or just a piling up of delayed processes if there are network issues causing slowdown. * koha may not have proper failure handling, causing messages to get lost if there's a network glitch. * if you ever upgrade libmail-sendmail-perl, or whatever it is on your system, you'll have to redo this change. The way I'd suggest instead is leave it default so that it sends via localhost, and have your local mail server (postfix or exim typically) forward it on where it needs to go. Mail servers are built with very smart error handling, queuing and so forth, also they allow you to have more complex rules about what goes where, should you want that. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
Hi Robin, Thanks for the response. You mean to say install postfix and route mails from localhost to postfix? In that case what would be KohaAdminEmailAddress? Regards, Somasekhar Rao K 2011/7/19 Robin Sheat <robin@catalyst.net.nz>
Somasekhar Rao K schreef op ma 18-07-2011 om 12:29 [+0530]:
3. In Sendmail.pm, I have configured it as follows. 'smtp' => [ qw( abc.com ) ],
I really think this is a terrible way to do this.
Three concrete reasons, excluding the fact that it just feels wrong:
* it will delay the queue process while it talks to the remote server to send messages. Depending on exactly how it works, this may cause duplicate messages, or just a piling up of delayed processes if there are network issues causing slowdown. * koha may not have proper failure handling, causing messages to get lost if there's a network glitch. * if you ever upgrade libmail-sendmail-perl, or whatever it is on your system, you'll have to redo this change.
The way I'd suggest instead is leave it default so that it sends via localhost, and have your local mail server (postfix or exim typically) forward it on where it needs to go. Mail servers are built with very smart error handling, queuing and so forth, also they allow you to have more complex rules about what goes where, should you want that.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Somasekhar Rao K schreef op di 19-07-2011 om 08:13 [+0530]:
You mean to say install postfix and route mails from localhost to postfix?
Yep, which is how it works by default. Then you can (if you need to) route mail from postfix to google.
In that case what would be KohaAdminEmailAddress?
Anything you want, it isn't affected by how you route your mail. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
Hi Tomas, It works smooth. Thank you very much for the hints. The approach is very clean. Thanks & Regards, Somasekhar Rao On Mon, May 30, 2011 at 8:41 PM, Tomas Cohen Arazi <tomascohen@gmail.com>wrote:
Hi,
On Fri, May 27, 2011 at 9:02 AM, schwitzd <schwitzd@gmail.com> wrote:
Meaby I have undertood what I have to configure. ... 'smtp' => [ qw( localhost ) ],
You need to put your mail servers FQDN or IP there (instead of 'localhost'). You should notice that several emails are sent in different ways in koha. For example notices are sent when a cronjob runs process_message_queue.pl. The sender address is taken from those variables you mention in other email, so the SMTP server should rely email from those addresses.
Regards To+ _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (6)
-
LAURENT Henri-Damien -
Paul Poulain -
Robin Sheat -
schwitzd -
Somasekhar Rao K -
Tomas Cohen Arazi