Fixed Sendmail parameter /USER= does not work

May 22, 2013
34
0
I used this command line for test and it work fine:

sendmail /V /X win10@uphoff.eu "Test message" @d:\mytext.txt >d:\testlog.txt

However, I need to override the sender

sendmail /USER="another@uphoff.eu /V /X win10@uphoff.eu "Test message" @d:\mytext.txt >d:\testlog.txt

The last is right as documented by TCC help. But regardless where I add /USER=, the parameter us used as an (invalid) recipient and the message is rejected by the server.

Someone can tel me what I am doing wrong?
 
May 22, 2013
34
0
Thanks, but to make it more complicated, the first quote was a typo in my message.
In the mean time i found this (is it a bug or am I just somewhat stupid.

WORKS: sendmail /V /X /USER=win10@uphoff.eu ruud@uphoff.eu "Test message" @d:\dirtest.txt
WORKS: sendmail /V /X ruud@uphoff.eu "Test message" @d:\dirtest.txt >D:\testlog.txt
ERROR: sendmail /V /X /USER=win10@uphoff.eu ruud@uphoff.eu "Test message" @d:\dirtest.txt >D:\testlog.txt

Thus only using both /USER= AND redirection results in the following message:
TCC: D:\testmailX.btm [2] SMTP protocol error. 550 Administrative prohibition.

Any idea what happens?
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
The problem isn't with /USER or redirection; the problem is with the /X option -- it isn't skipping the whitespace before looking for the next switch argument. If you put the /X after the /USER it should work.

I have fixed this for the next build of TCC.
 
May 22, 2013
34
0
Moving the /X has no effect, however removing it has solved the problem. And now I see that even without /X, te command uses EHLO

Thanks!
 
Similar threads
Thread starter Title Forum Replies Date
Jay Sage How to? SENDMAIL with G-Suite Mail Account Support 6
vefatica SENDMAIL via smtp.gmail.com? Support 3
C How to? inline IMG with sendmail? Support 7
R TCC-RT sendmail Support 8
C sendmail in v20.00.25 x64 Support 7
Mordachai How to pass URL to sendmail? Support 10
J Sendmail, SSL and MS Servers Support 11
C SendMail and yahoo.com Support 1
C Sendmail w/GMail - problem Support 6
C Google Sendmail ? Support 15
Joe Caverly How to? SendMail and SSL Support 2
Dan Glynhampton Fixed v15 sendmail : password encryption problem Support 18
Jay Sage SENDMAIL Apparently Not Setting Priority Support 2
S @CON: does not work with sendmail for pipe Support 2
vefatica SENDMAIL, command line override SMTP server? Support 2
Joe Caverly SENDMAIL under v14 Support 3
dcantor SENDMAIL /= missing field Support 4
C Using dif. sending addresses with sendmail Support 11
C sendmail TO name? Support 9
A Using SENDMAIL with Exchange Server Support 1
H Minor bug in v12 SENDMAIL Support 0
Jay Sage SENDMAIL Problem in TCC12 Support 10
dcantor Problem with SENDMAIL /H Support 4
Jay Sage How Can SENDMAIL Create Messages with Plain Text and HTML Support 2
C sendmail question Support 1
dcantor Feature request for SENDMAIL Support 0
S SENDMAIL attachment size limit Support 1
S SENDMAIL vs. RFC 2822 Support 0
S SENDMAIL vs. RFC 2822 Support 0
J Configure SendMail to go through GMAIL as SMTP server Support 10
Jay Sage Parameter %$ Different in Aliases and BTMa Support 4
vefatica Literal double quotes in SHORTCUT's "args" parameter? Support 6
T How can I send a simple parameter to a script, in tc 25? Support 2
M Backquoted parameters used in GoSub don't pass string as a single parameter Support 2
vefatica @TIMER's second parameter? Support 3
A Fixed v25 regression: Parameter expansion fails in piped commands Support 2
MikeBaas @regsetenv complains "wrong parameter" Support 14
D Envar _tcexit has value, even with /IX startup parameter Support 0
kb6ojs Make /G parameter persistent in COPY/MOVE command? Support 4
vefatica "/" as parameter separator? Support 3
MickeyF create an alias with optional parameter Support 4
newgeekorder Debugger IDE - strange tab and parameter behaviour Support 1
fromano Invalid parameter 12.0.34 x64 Support 1
David McClelland TC10 - cdd /t gives invalid parameter Support 2

Similar threads