Re: specify SMTP relay server in mutt
Sunhux G <[email protected]> Thu, 17 Jul 2014 19:52:08 +0800
| Newsgroups | gmane.linux.redhat.general |
|---|---|
| Message-ID | <CABTxP=7WBNYm6_f6dgN5D75bnh3YS2L8pXf8rZ03vCSD8yrPaw@mail.gmail.com> |
Have to remove both -a & -S in order not to get the syntax error but the emails never arrive: (I'm able to 'telnet 172.20.1.92 25' from the server that mailx is issued from) # mailx -s "test5" -u root "smtp=172.20.1.92" [email protected] < /tmp/cis/group.tmp Or # mailx -s "test5" -u root "smtp=172.20.1.92:25" [email protected] < /tmp/cis/group.tmp If I issue just the command below from the sendmail relay server itself (without the -S & without "smtp=IP_of_SMTP"), the emails arrive: mailx -s "from SMTP2 server" [email protected] < /tmp/tst.dat I browsed thru the man pages for mailx : can't locate a -S or "smtp=a.b.c.d" option. Did I miss something? On Thu, Jul 17, 2014 at 7:37 PM, Sunhux G <[email protected]> wrote: > > What Harris gave with mailx is probably what I'm looking for, > just that I can't get the syntax right with -a (or even if I leave > out the -a option) : > > # mailx -s "test" -a /tmp/tst.tar.gz -S "smtp=172.20.1.92" > [email protected] < /tmp/cis/group.tmp > Or (without the -u ) > # mailx -s "test" -a /tmp/tst.tar.gz -u [email protected] -S > "smtp=172.20.1.92" [email protected] < /tmp/cis/group.tmp > mailx: invalid option -- a > Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... > [-- sendmail-options ...] > mail [-iInNv] -f [name] > mail [-iInNv] [-u user] > What did I miss? I've tried with uuencode (referring to some > examples on the Net) too but no joy > > > SH > -- redhat-list mailing list unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list