Forum OpenACS Q&A: Add a batch of users

Collapse
Posted by Iuri Sampaio on
I realised the functionality on OpenACS system, to add various users at once, send a confirmation email to them that:
1) or it gets their spam's/junk-email inbox,
2) or it is filtered by the spam/junk emails filters
3) or even the email doesn't arrive.

so i went to the logs and some attempts say:

Jul 7 13:59:26 debianserver postfix/smtp[7321]: 28FF31FF69: host g.mx.mail.yahoo.com[206.190.53.191] refused to talk to me: 421 Message from (201.12.191.165) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html

Jul 7 13:59:26 debianserver postfix/smtp[7320]: 10E121FF63: to=iuri_mailto:sampaio@hotmail.com, relay=mx2.hotmail.com[65.54.245.40]:25, delay=1.5, delays=0.02/0.28/0.9/0.26, dsn=5.0.0, status=bounced (host mx2.hotmail.com[65.54.245.40] said: 550 Your e-mail was rejected for policy reasons on this gateway. Reasons for rejection may be related to content such as obscene language, graphics, or spam-like characteristics (or) other reputation problems. For sender troubleshooting information, please go to http://postmaster.msn.com. Please note: if you are an end-user please contact your E-mail/Internet Service Provider for assistance. (in reply to MAIL FROM command))

How to avoid that? i need to be sure the emails is being sent. and the most important: my server is not a spam email sender!

Collapse
2: Re: Add a batch of users (response to 1)
Posted by Eduardo Santos on
Hi Iuri,

The mail problem is not an OpenACS problem: it's a mail server problem. To make sure your mails don't get rejected there are some basic things you need to do:

1 - Create an MX entry for your domain;
2 - Create a reverse DNS for your domain;
3 - Create an A Domain for your domain.

Go to www.dnsstuff.com and perform a check for your mail server, so you can see what's the problem with the DNS address you chose.

Collapse
3: Re: Add a batch of users (response to 2)
Posted by Iuri Sampaio on
Hi eduardo,
thanks a lot for the feedback.

Although I didn't infer to those steps. I just made a test using a registered server with all the 3 steps succeeded, and got the follow log at "/var/log/mail.log"

what should i do, in order to have certainty, at least from my side(mail sender side), that the email arrives at its destiny?

it doesn't behave very nice, when i try to send to more than 2 emails.

Jul 10 02:14:03 localhost postfix/smtpd[27707]: connect from localhost[127.0.0.1]
Jul 10 02:14:03 localhost postfix/smtpd[27707]: 7AE0A2816E: client=localhost[127.0.0.1]
Jul 10 02:14:03 localhost postfix/cleanup[27708]: 7AE0A2816E: message-id=20070710051403.7AE0A2816E@ieee.ufba.br
Jul 10 02:14:03 localhost postfix/smtpd[27707]: disconnect from localhost[127.0.0.1]
Jul 10 02:14:03 localhost postfix/qmgr[31145]: 7AE0A2816E: from=iuri.sampaio@computer.org, size=628, nrcpt=1 (queue active)
Jul 10 02:14:03 localhost postfix/smtpd[27707]: connect from localhost[127.0.0.1]
Jul 10 02:14:03 localhost postfix/smtpd[27707]: D387F2816F: client=localhost[127.0.0.1]
Jul 10 02:14:03 localhost postfix/cleanup[27708]: D387F2816F: message-id=20070710051403.D387F2816F@ieee.ufba.br
Jul 10 02:14:03 localhost postfix/smtpd[27707]: disconnect from localhost[127.0.0.1]
Jul 10 02:14:03 localhost postfix/qmgr[31145]: D387F2816F: from=iuri.sampaio@computer.org, size=632, nrcpt=1 (queue active)
Jul 10 02:14:04 localhost postfix/smtpd[27707]: connect from localhost[127.0.0.1]
Jul 10 02:14:04 localhost postfix/smtpd[27707]: 3B57628170: client=localhost[127.0.0.1]
Jul 10 02:14:04 localhost postfix/cleanup[27708]: 3B57628170: message-id=20070710051404.3B57628170@ieee.ufba.br
Jul 10 02:14:04 localhost postfix/qmgr[31145]: 3B57628170: from=iuri.sampaio@computer.org, size=620, nrcpt=1 (queue active)
Jul 10 02:14:04 localhost postfix/smtpd[27707]: disconnect from localhost[127.0.0.1]
Jul 10 02:14:05 localhost postfix/smtp[27690]: 7AE0A2816E: to=iuri_mailto:sampaio@hotmail.com, relay=mx2.hotmail.com[65.54.245.40], delay=2, status=sent (250 mailto:20070710051403.7AE0A2816E@ieee.ufba.br Queued mail for delivery)
Jul 10 02:14:05 localhost postfix/qmgr[31145]: 7AE0A2816E: removed
Jul 10 02:14:13 localhost postfix/smtp[27689]: D387F2816F: to=iuri_mailto:sampaio@yahoo.com.br, relay=none, delay=10, status=deferred (Host or domain name not found. Name service error for name=yahoo.com.br type=MX: Host not found, try again)
Jul 10 02:14:34 localhost postfix/smtp[27709]: connect to hormel.ieee.org[140.98.193.224]: Connection timed out (port 25)
Jul 10 02:15:04 localhost postfix/smtp[27709]: connect to lemroh.ieee.org[140.98.193.30]: Connection timed out (port 25)
Jul 10 02:15:04 localhost postfix/smtp[27709]: 3B57628170: to=iuri_mailto:sampaio@ieee.org, relay=none, delay=60, status=deferred (connect to lemroh.ieee.org[140.98.193.30]: Connection timed out)

Collapse
4: Re: Add a batch of users (response to 3)
Posted by Eduardo Santos on
It seems like your message is being sent without domain. Go to the site-map and ook at the parameters in the notifications package. Take a look at the BounceDomain parameter ot make sure your message is being sent with the domain you chose.

Check the acs-mail-lite parameters for the same domains, so you can make sure your messages get the right domain when they are sent.

Collapse
5: Re: Add a batch of users (response to 4)
Posted by Iuri Sampaio on
Hi Eduardo,

you were correct! The DNS wasn't pointed to my server. Thanks a lot.

it's seems to be fixed. although at "/etc/log/error.log", i noticed some errors when added a large number of emails at once.

somehow the emails weren't sent, got stuck at the queue, some didn't arrive.

Collapse
6: Re: Add a batch of users (response to 5)
Posted by Eduardo Santos on
This is another old bug. When you have an invalid mail address in the queue, it stucks the line and no other messages are sent. Take a look at the acs_mail_lite_queue table, wich is the one that stores the messages to be sent. There shouldn't be any messages there, so if there are some you have an invalid mail address in the queue.

Check the to_addr column and erase the message with the wrong address. It'll probably work for you.