-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 29/05/14 12:49, Bob Proulx wrote: > Harry Putnam wrote: >> Trying to use heirloom mailx to test various exim4 settings and >> It works, but there is something in it that bugs me. Makes me >> think I'm doing something wrong. > > I use mailx for sending emails all of the time. I don't see the > problem you reported. Works for me. > > Normally I use the mailx from bsd-mailx. I just now tested with > heirloom-mailx and it behaves the same. That is to say it works > fine. Because of the alternatives can you verify that you are > using the version of mailx that you expect? > > On my system after installing heirloom-mailx I now have: > > # update-alternatives --display mailx mailx - auto mode link > currently points to /usr/bin/heirloom-mailx /usr/bin/bsd-mailx - > priority 50 slave Mail: /usr/bin/bsd-mailx slave Mail.1.gz: > /usr/share/man/man1/bsd-mailx.1.gz slave mail: /usr/bin/bsd-mailx > slave mail.1.gz: /usr/share/man/man1/bsd-mailx.1.gz slave > mailx.1.gz: /usr/share/man/man1/bsd-mailx.1.gz > /usr/bin/heirloom-mailx - priority 60 slave Mail: > /usr/bin/heirloom-mailx slave Mail.1.gz: > /usr/share/man/man1/heirloom-mailx.1.gz slave mail: > /usr/bin/heirloom-mailx slave mail.1.gz: > /usr/share/man/man1/heirloom-mailx.1.gz slave mailx.1.gz: > /usr/share/man/man1/heirloom-mailx.1.gz /usr/bin/mh/mhmail - > priority 25 slave Mail: /usr/bin/mh/mhmail slave Mail.1.gz: > /usr/share/man/man1/mhmail.1.gz slave mail: /usr/bin/mh/mhmail > slave mail.1.gz: /usr/share/man/man1/mhmail.1.gz slave mailx.1.gz: > /usr/share/man/man1/mhmail.1.gz Current 'best' version is > '/usr/bin/heirloom-mailx'. > >> Here is a typical example >> >> mailx -v re...@location.com Subject: what ever ble bleh . >> <ENTER> >> >> And away it goes and outputs the smtp conversation ending in the >> message >> >> [...] >> >> LOG: MAIN Completed >> >> But then I never get the prompt back. > > This is what I see: > > rwp@havoc:~$ echo test test test | mailx -s "heirloom-mailx test" > b...@proulx.com rwp@havoc:~$
You're not using the -v option, which tells the MTA to be verbose. Exim then spits out the SMTP session, while postfix captures it and send you back an email. Now that I put it like that, I understand it better myself - mailx isn't putting itself in the background, but the MTA continues to work asynchronously. Richard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQEcBAEBAgAGBQJThrvrAAoJELSi8I/scBaNp14H/jLloqvY0gnkyIYNesTWCGMv zf1mJRSQ58fpHZvGVSfYH1PWVvXjDMsCbYYJV9hqd+bPJws9r0YnyEk8Q7HvX66m rDXk1Bh9vxj7IFV6GEmb44Lr1tKgL6AGesA8+1Q/H7NcWVMQa/AbTh5qS4BRTv3r gADHJ2XEoXFrnxGZahBX1uIPJ+tgE7/IpM8uJyqy3dzJl6/XMMe33VB0sz0V3a/s SXlWknGH1JnEJg5XSifl3bNcfXNQmognMY2t9Y3YmIsFNfLu/5AzXbBxWmCd0hrh ngvLgSxp0csZa/BaWwi2+4EUsiaU0kba+SNiOriHTKlGejAw+wWmn8GbZbT+C7c= =F6aG -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5386bbf2.6090...@walnut.gen.nz