GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
EMAIL2NCID(1) User Contributed Perl Documentation EMAIL2NCID(1)

email2ncid - convert an email to an NCID message

 email2ncid [--configfile    | -C <filename>]
            [--hostname-flag | -H <0|1>]
            [--help          | -h]
            [--man           | -m]
            [--notify        | -N <0|1>]
            [--ncidserver    | -n <[host][:port]>]
            [--test          | -t <1-9>]
            [--version       | -V]

The email2ncid gateway sends the contents of an email to the NCID server as one line. It is called from a .procmailrc file when an email contains the line: Subject: NCID Message

The email2ncid gateway has an option to only send an email subject line to the NCID server. It is called from a .procmailrc file when the email address or name matches on the email "From:" line.

The email must be in either plain text, or HTML and plain text. The output of email2ncid is a one line NCID message sent to an NCID server.

-C, --configfile <filename>
Specifies the configuration file to use. The program will still run if a configuration file is not found.
-H <0|1>, --hostname-flag <0|1>
When the hostname flag is set to 1, the IDENT string sent to a server will include the hostname with the program name.

Default: 0

-h, --help
Displays the help message and exits.
-m, --man
Displays the manual page and exits.
-N <0|1>, --notify <0|1>
This option sends a message to NCID containing only the subject line instead of the email contents as one line. It is a notification of some type:

    * visitor arrived at a gate in a gated community
    * an important email arrived
    
-n <[host][:port]>, --ncidserver <[host][:port]>
Specifies the NCID server. Port may be specified by suffixing the hostname with :<port>.

Input must be <host:port> or <host>, or <:host>

-t <1-9>, --test <1-9>
Test mode connects to the server and displays some information and the message. It does not send the message to the server. Set the level to a higher number for more information. Levels range from 1 to 9, but not all levels are used.

    test = 1: show some variables and generated message
    test = 2: additionally show 2 or 3 lines returned by server
    test = 3: additionally show the email message
    

Default: no test mode

-V, --version
Displays the version.

The NCID server
http://ncid.sourceforge.net/ncid/ncid.html
A dynamic DNS service:
ChangeIP (https://www.changeip.com/dns.php)

Dynu (https://www.dynu.com)

DynDNS (https://www.dyn.com)

A Mail Transport Agent (MTA):
exim, postfix, sendmail, etc.
firewall:
Forward port 25 TCP/UDP to the computer running the MTA
procmail:
$HOME/.procmailrc must be created or updated to call email2ncid.

Execute the following command to automate this process:

ncid-setup email2ncid
Perl
perl 5.6 or higher, perl(Config::Simple)

/usr/local/etc/ncid/email2ncid.conf

$HOME/.procmailrc

email2ncid.conf.5, ncid-email2ncid-setup.1, ncidd.8, ncid.conf.5, ncid_gateways.7
2022-04-08 perl v5.32.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.