• Automatic emails

    From Kc2ugv@VERT to All on Sun Jul 3 22:18:03 2016
    Try to automate emails to a message base, and I've been unable to find a linux cli
    mail client that can auth correctly.

    Is there a way to make it so a particular IP can send the mail without authentication? I'm bumping into:

    550 Insufficient access

    As the error when I'm attempting to send the email to the message base. Or, am I
    setting up the message base wrong?

    ---
    þ Synchronet þ KC2UGV-9
  • From Digital Man@VERT to Kc2ugv on Mon Jul 4 11:38:56 2016
    Re: Automatic emails
    By: Kc2ugv to All on Sun Jul 03 2016 10:18 pm

    Try to automate emails to a message base, and I've been unable to find a linux cli
    mail client that can auth correctly.

    Is there a way to make it so a particular IP can send the mail without authentication? I'm bumping into:

    550 Insufficient access

    As the error when I'm attempting to send the email to the message base. Or, am I
    setting up the message base wrong?

    Could be that or something else. Post more of the log output (in "debug" log level mode) and I should be able to determine the cause of the error and tell you the solution.

    digital man

    Synchronet "Real Fact" #13:
    Synchronet was the first BBS software to ship with internal QWK networking. Norco, CA WX: 75.1øF, 62.0% humidity, 6 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Kc2ugv@VERT to Digital Man on Mon Jul 4 20:30:38 2016
    Re: Automatic emails
    By: Kc2ugv to All on Sun Jul 03 2016 10:18 pm

    Try to automate emails to a message base, and I've been unable to find a linux cli
    mail client that can auth correctly.

    Is there a way to make it so a particular IP can send the mail without authentication? I'm bumping into:

    550 Insufficient access

    As the error when I'm attempting to send the email to the message base. Or, am I
    setting up the message base wrong?

    Could be that or something else. Post more of the log output (in "debug" log level mode) and I should be able to determine the cause of the error and tell you the solution.

    digital man

    Synchronet "Real Fact" #13:
    Synchronet was the first BBS software to ship with internal QWK networking. Norco, CA WX: 75.1øF, 62.0% humidity, 6 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net

    Log follows:

    ---BEGIN CUT---
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP Receiving mail message from:
    corey.reichle@gmail.com to localnews@kc2ugv-9.coreyreichle.com
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP End of message (body: 1 lines, 17 bytes, header: 1 lines, 27 bytes)
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP Executing external mail processor: MailAuth
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 !SMTP corey.reichle@gmail.com (user #0) cannot post on LOCALNEWS (reason: 12)
    ---END CUT---

    I have the use posting requirement set user user>0 (Also tried USER=0 and USER 0).

    ---
    þ Synchronet þ KC2UGV-9
  • From Digital Man@VERT to Kc2ugv on Tue Jul 5 01:38:21 2016
    Re: Re: Automatic emails
    By: Kc2ugv to Digital Man on Mon Jul 04 2016 08:30 pm

    Re: Automatic emails
    By: Kc2ugv to All on Sun Jul 03 2016 10:18 pm

    Try to automate emails to a message base, and I've been unable to find a linux cli
    mail client that can auth correctly.

    Is there a way to make it so a particular IP can send the mail without authentication? I'm bumping into:

    550 Insufficient access

    As the error when I'm attempting to send the email to the message base. Or, am I
    setting up the message base wrong?

    Could be that or something else. Post more of the log output (in "debug" log level mode) and I should be able to determine the cause of the error and tell you the solution.

    digital man

    Synchronet "Real Fact" #13:
    Synchronet was the first BBS software to ship with internal QWK networking. Norco, CA WX: 75.1øF, 62.0% humidity, 6 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net

    Log follows:

    ---BEGIN CUT---
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP Receiving mail message from:
    corey.reichle@gmail.com to localnews@kc2ugv-9.coreyreichle.com
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP End of message (body: 1 lines, 17 bytes, header: 1 lines, 27 bytes)
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP Executing external mail processor: MailAuth
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 !SMTP corey.reichle@gmail.com (user #0) cannot post on LOCALNEWS (reason: 12)
    ---END CUT---

    I have the use posting requirement set user user>0 (Also tried USER=0 and USER 0).

    Well the "user #0" in the log output indicates that the SMTP client did *not* authenticate. So if that smtp cli program support authentication, you may need to double-check your command-line and make sure you're enabling the authentication feature properly.

    In any case, the "reason: 12" indicates that the reason for disallowing the post is that user #0 (which would have a security level of 0) isn't allowed to post any messages. You could change this by setting SCFG->System->Security Level Values->Level 0->Posts Per Day to 1 (or higher).

    digital man

    Synchronet/BBS Terminology Definition #20:
    FOSSIL = Fido/Opus/SEAdog Standard Interface Layer
    Norco, CA WX: 61.0øF, 89.0% humidity, 3 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Kc2ugv@VERT to Digital Man on Tue Jul 5 08:47:22 2016
    Re: Re: Automatic emails
    By: Kc2ugv to Digital Man on Mon Jul 04 2016 08:30 pm

    Re: Automatic emails
    By: Kc2ugv to All on Sun Jul 03 2016 10:18 pm

    Try to automate emails to a message base, and I've been unable to find a linux cli
    mail client that can auth correctly.

    Is there a way to make it so a particular IP can send the mail without authentication? I'm bumping into:

    550 Insufficient access

    As the error when I'm attempting to send the email to the message base. Or, am I
    setting up the message base wrong?

    Could be that or something else. Post more of the log output (in "debug" log level mode) and I should be able to determine the cause of the error and tell you the solution.

    digital man

    Synchronet "Real Fact" #13:
    Synchronet was the first BBS software to ship with internal QWK networking. Norco, CA WX: 75.1øF, 62.0% humidity, 6 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net

    Log follows:

    ---BEGIN CUT---
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP Receiving mail message from:
    corey.reichle@gmail.com to localnews@kc2ugv-9.coreyreichle.com
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP End of message (body: 1 lines, 17 bytes, header: 1 lines, 27 bytes)
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 SMTP Executing external mail processor: MailAuth
    Jul 4 20:28:51 KC2UGV-9 synchronet: mail 0069 !SMTP corey.reichle@gmail.com (user #0) cannot post on LOCALNEWS (reason: 12) ---END CUT---

    I have the use posting requirement set user user>0 (Also tried USER=0 and USER 0).

    Well the "user #0" in the log output indicates that the SMTP client did *not* authenticate. So if that smtp cli program support authentication, you may need to double-check your command-line and make sure you're enabling the authentication feature properly.


    Right. In this case, I did a manual mail, with an un-authed user. I know smpt auth itself works, as I've done it manually via telnet.

    I guess my problem is less synchronet, and more "What cli mail utility auth's properly, and how do I set it up to do so (ie options passed, dot file, etc etc).

    In any case, the "reason: 12" indicates that the reason for disallowing the post is that user #0 (which would have a security level of 0) isn't allowed to post any messages. You could change this by setting SCFG->System->Security Level Values->Level 0->Posts Per Day to 1 (or higher).

    digital man

    Synchronet/BBS Terminology Definition #20:
    FOSSIL = Fido/Opus/SEAdog Standard Interface Layer
    Norco, CA WX: 61.0øF, 89.0% humidity, 3 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net

    Ok, so I'll leave this route in my back pocket if I finally give up on automating an auth'd email. I would think it'd be somewhat dangerous to allow all-around anon posting, but maybe the cost/benefit would be worth it in this case.

    ---
    þ Synchronet þ KC2UGV-9
  • From Kc2ugv@VERT to ALL on Tue Jul 5 19:40:53 2016
    Re: Re: Automatic emails
    By: Kc2ugv to Digital Man on Mon Jul 04 2016 08:30 pm

    Re: Automatic emails
    By: Kc2ugv to All on Sun Jul 03 2016 10:18 pm

    Try to automate emails to a message base, and I've been unable to find a linux cli
    mail client that can auth correctly.
    ...

    So, I've worked up a solution, since no cli-client seemed suitable. I figure I'd share with the sysops here, as they may be looking for a similar solution.

    https://github.com/coreyreichle/bbs_stuff

    There's two scripts there. The weather.sh script is a really down-and-dirty method to send emails via the telnet utility. I was attempting to do the same for all stories in an RSS feed, but it quickly falls apart (Timing, it seems, talking to the SMTP server).

    So, send_feed.pl comes to the rescue! Perl is so much easier to do tasks such as parsing XML documents than awk, sed, or any other *Nix utility.

    What send_feed.pl does is grab the feed, and work through it, pulling the pertinent parts for each story, then emailing it to the distro specified.

    While, I wrote this for my BBS, it could very well work to just email news stories to yourself. And, of course, pull requests are welcomed.

    ---
    þ Synchronet þ KC2UGV-9