• sendmail -bv

    From jgt@21:1/5 to All on Wed Apr 20 12:10:26 2022
    I have been using "sendmail -bv emailaddress" to validate email addresses (buried within my client validation program.)
    On my SCO system that uses 8.11.3, the results are written to standard output. On my Linux Mint system, the results are emailed to me.
    8.11.3 is appears to be no longer available for download, does anyone know which was the last release that output was directed to standard output?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrzej Adam Filip@21:1/5 to jgt on Wed Apr 20 19:46:59 2022
    jgt <jack@qbol.com> wrote:
    I have been using "sendmail -bv emailaddress" to validate email
    addresses (buried within my client validation program.)
    On my SCO system that uses 8.11.3, the results are written to standard output.
    On my Linux Mint system, the results are emailed to me.
    8.11.3 is appears to be no longer available for download, does anyone
    know which was the last release that output was directed to standard
    output?

    Are you sure you do not use sendmail look alike provided by postfix?

    https://linux.die.net/man/1/sendmail.postfix
    sendmail - Postfix to Sendmail compatibility interface
    […]
    -bv Do not collect or deliver a message. Instead, send an email
    report after verifying each recipient address. This is useful for
    testing address rewriting and routing configurations.
    This feature is available in Postfix version 2.1 and later.

    --
    [Andrew] Andrzej A. Filip

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jgt@21:1/5 to All on Wed Apr 20 14:25:32 2022
    Postfix is not installed, and sendmail is 8.15.4.
    The man page for the postfix version of sendmail which I have on another system starts with
    "postfix to sendmail compatibility interface" whereas the sendmail version starts
    with "electronic mail transport agent". So I am assuming that I am using the original sendmail.
    I did try installing the oldest (8.12.11) version on the sendmail.org website, but it failed to compile.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to jgt on Thu Apr 21 00:55:37 2022
    jgt wrote:

    Postfix is not installed, and sendmail is 8.15.4.

    What's the output of
    sendmail -bt -d0.14 </dev/null

    I did try installing the oldest (8.12.11) version on the sendmail.org website, but it failed to compile.

    Just use the latest version.
    The "real" sendmail will not e-mail you the results of -bv.

    $ sendmail -bv user
    Notice: -bv may give misleading output for non-privileged user
    can not chdir(/var/spool/mqueue/): Permission denied
    Program mode requires special privileges, e.g., root or TrustedUser.

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jgt@21:1/5 to All on Tue Apr 26 09:22:51 2022
    I inspected the output of 'sendmail -bt -d0.14 </dev/null' and found that the FDQN of the system was missing from /etc/hosts.
    Updated the hosts file, and all works when run by root, or sudo.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)