Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SMTP problem (tough one)

1,284 views
Skip to first unread message

F.

unread,
Sep 4, 2006, 12:16:32 PM9/4/06
to
Hi,
Recantly my SMTP service stopped working as it should...
Simply it wont send any messages to the internet ;>
I tried to reconfig whole SMTP with no luck,
When I try SNDDST , I get " Send distribution completed successfully. "
Yet no activity from AS/400 is taken.

my config:

system is V5R2M0
i dont have any system alias tables
SMTP : Autostart(YES)
Automatic registration(YES)
USRIDX: QSM
ADR: QSMRMTAD
System Name: TCPIP
Alias table type: *SYSTEM
Mailrouter: '172.24.134.5'
Firewall: YES
Journal: YES
Process .... MSF: NO

I added Directory Entry:

INTERNET SMTPRTE (manual taken from IBM support site)

Changed CHGDSTA to INTERNET SMTPRTE

I added myself to the Directory so I can send messages.

Yet SMTP wont send anything!
---
So I configured test machine (the same relase V5R2M0) from scratch with the
same config values and it works...
Messages are sent to the SMTP Relay....

Still main server wont send anything with the same config, any ideas where I
should look to fix this one ?

Thnx for reply,

F.


Pjotr

unread,
Sep 4, 2006, 4:20:55 PM9/4/06
to
Do "GO TCPADM" and choose option 20.
Following jobs must be running:

QTSMTPBRCL QTCP BCH 0,0 PGM-QTMSBRDG DEQW
QTSMTPBRSR QTCP BCH 0,0 PGM-QTMSBRSR DEQW
QTSMTPCLNT QTCP BCH 0,0 PGM-QTMSCLCP DEQW
QTSMTPSRVR QTCP BCH 0,0 PGM-QTMSSRCP SELW

If not try to find the joblog after starting STRTCPSVR *SMTP. I don't know
what it was but something did not start. I can't remember what it was.

Pjotr

Brad

unread,
Sep 4, 2006, 4:46:03 PM9/4/06
to

You might also want to try ending and restarting MSF with clear option
along with your SMTP.

ENDMSF OPTION(*IMMED)
ENDTCPSVR *SMTP

WRKACTJOB, check all SMTP JOBS ended

STRMSF MSGOPT(*CLEAR)
STRYCPSVR *SMTP

Good Luck, Brad

Brad

unread,
Sep 4, 2006, 4:48:11 PM9/4/06
to

That last command should have been:

STRTCPSVR *SMTP

Brad

vra...@gmail.com

unread,
Sep 5, 2006, 2:48:39 AM9/5/06
to
Hey,
Dont get me too lame,
STRTCPSVR *SMTP; STRMSF; STRSBS QSNADS done already 100000000 times...
Even while in a process of desperation I did PWRDWNSYS OPTION(*IMMED)
RESTART(*YES)

no effect...

I have read tons of how-to-SMTP manuals, every single article on IBM
regarding SMTP and nothing.

Everything is configured just fine, I even turned journal on and read
the log entries and it's fine.

Still SMTP wont send anything...

So

Any other ideas ?

F.

Jonathan Bailey

unread,
Sep 5, 2006, 6:03:27 AM9/5/06
to
Can you do telnet '172.24.134.5' port(25) from the as400?
Then you should follow the rfc for smtp & attempt to send an email:
HELO as400
mail from:<as400.email.address>
rcpt to:<external.email.address>
data
test email
.

& note any error messages. Our email from the as400goes wonky from time
to time. Mostly due to 'improvements' in the pc firewalls/spam
filters/virus checkers/ etc.

HTH
Jonathan

vra...@gmail.com

unread,
Sep 5, 2006, 6:21:00 AM9/5/06
to
RE:
I can telnet to mailrelay at port 25 with no problems, its not the
tcpip problem

I found out that when I try SNDDST mail wont be delivered to the DIRE
"INTERNET SMTPRTE" for some reason... so its either SNADS or MSF or
SMTP :P or whatever else.

HELP !


F.

Thorbjoern Ravn Andersen

unread,
Sep 5, 2006, 6:51:58 AM9/5/06
to
vra...@gmail.com writes:

> I can telnet to mailrelay at port 25 with no problems, its not the
> tcpip problem

Do you come all the way to the end of the communication, så that it
accepts a mail for delivery?
--
Thorbjørn Ravn Andersen

vra...@gmail.com

unread,
Sep 5, 2006, 6:57:01 AM9/5/06
to
Yup I can send messages via telnet with no problem

F.

René H. Hartman

unread,
Sep 5, 2006, 10:13:05 AM9/5/06
to

vra...@gmail.com

unread,
Sep 5, 2006, 1:43:51 PM9/5/06
to
Hi,
Thnx for the links,thu I have tried all of them last week with no luck.

> QSNQDS? Sounds like you still have a V3Rx configuration, with QSMTPQ and all..

I may have QSMTPQ and all yet I turned that off :

Opt Queue Name Priority From To Force Send Current
Status
QSMTPQ Normal : - : : 1 0
Not-Rdy
QSMTPQ High : - : : 1 0
Not-Rdy

I use context...
Unfortunately after all reconfig (using IBM manuals from your links) my
SMTP doesnt work at all ....

Slowly I am getting this strange idea that this can't be just fixed...

Anyone HELP!

F.

René H. Hartman

unread,
Sep 6, 2006, 12:04:50 PM9/6/06
to
Well, back to the SMTP joblogs, system logs. Somewhere there must be
some info, this is not Windoze..

--
Best regards,

René H. Hartman
www.hac-maarssen.nl


<vra...@gmail.com> schreef in bericht
news:1157478231.7...@e3g2000cwe.googlegroups.com...

Bradley V. Stone

unread,
Sep 6, 2006, 1:27:10 PM9/6/06
to
Do this (note, I'm not trying to sell you my software, but we can track
with this and make things easier to figure out what could be wrong).

1. Download MAILTOOL from www.bvstools.com/mailtool.html.
2. Install it.
3. Apply the temp keys for both MAILTOOL and MAILTOOL Plus that come
with it. You should be applying 2 keys.
4. Use the MAILTOOL command to send an email. But, specify the following:

SENDWITH(*MAILTOOL)
MAILRTR(xx.xx.xx.xx)
USERTR(*ONLY)
DEBUG(*YES)

Replace "xx.xx.xx.xx" with your mail router address.

Once this is done, you will have a file named /tmp/mailtoolsmtp.txt.
Send this file to me (but send it to bvstone at bvstools dot com, not
the address used here) along with the command used, and the pertinant
job log.

When email just STOPS working, 99% of the time it's the mail router that
is the problem. Though IBM SMTP really leaves a lot to be desired, as
does SNDDST. :)

Brad
www.bvstools.com

gb

unread,
Sep 6, 2006, 2:27:25 PM9/6/06
to
<vra...@gmail.com> wrote in message
news:1157438918.9...@p79g2000cwp.googlegroups.com...

Coming a bit late to the thread, but occasionally we have SMTP "stop
working", the following code works for us (but it will delete all email
queued up)...

PGM
CRTDTAARA DTAARA(QUSRSYS/QTMSCLEAN) TYPE(*CHAR) LEN(1) VALUE('C')
AUT(*ALL)
ENDTCPSVR SERVER(*SMTP)
DLYJOB DLY(5)
ENDMSF
STRMSF MSGOPT(*CLEAR)
DLYJOB DLY(5)
STRTCPSVR SERVER(*SMTP)
DLYJOB DLY(5)
SNDDSTQ DSTQ(QSMTPQ) PTY(*NORMAL)
SNDDSTQ DSTQ(QSMTPQ) PTY(*HIGH)
ENDPGM

HTH

GB


Thorbjoern Ravn Andersen

unread,
Sep 6, 2006, 3:20:47 PM9/6/06
to
vra...@gmail.com writes:

> Yup I can send messages via telnet with no problem

So you can telnet to the AS/400 box and handfeed it an email which is
then delivered correctly?

--
Thorbjørn Ravn Andersen

vra...@gmail.com

unread,
Sep 6, 2006, 6:01:48 PM9/6/06
to
> So you can telnet to the AS/400 box and handfeed it an email which is
> then delivered correctly?
No and yes partly,
I have SMTP RELAY on Linux machine with log level at 100 ;>
I want to send email from AS/400 to Internet via Linux
I can telnet from AS/400 to linux on port 25 and send email by hand
Also I can telnet from w/e to AS/400 on port 25 and SMTP on as/400 will
answer...
Yet when trying to send email while telneting to AS/400 it wont work...

Re Up:
I'll try this MAILTOOL but it's not a solution because I have bunch of
applications written using SNDDST... too much fuss to rewrite all of
it.

Re Up Up:
I'll try this PGM code, but I can recall all of it and I am sure I
tried that at least 40 times.

Re Up Up Up:
I have log files from journal - nothing there :P

F.

vra...@gmail.com

unread,
Sep 7, 2006, 5:37:57 AM9/7/06
to
Re Bradley V. Stone:

I tried it:

> MAILTOOL TOADDR('te...@ryz-mail1.pl.hellmann.net') TONAME(Aaa)
FROMADDR('t
e...@pl.hellmann.net') SUBJECT(a) MESSAGE(a) SENDWITH(*MAILTOOL)
MAILRTR('
172.24.134.5') USERTR(*ONLY) DEBUG(*YES)

Error sending email.

No luck thu...

F.

arrowc...@bigfoot.com

unread,
Sep 7, 2006, 7:41:44 AM9/7/06
to
Also, check for IBM PTF's. I don't have the number, but there was a
recent PTF for "SMTP stops working"

vra...@gmail.com

unread,
Sep 18, 2006, 8:29:25 AM9/18/06
to
Problem solved,
I used freeware application to send an email messages :P

As far as it goes for smtp error - I did all there can be without
reinstalling system,
I even tried to update ptf's to newest release and it didn't help.

If any1 is havin' same problem check this out :
http://homepage1.nifty.com/uzaemon/

it works, it's free and u have source code ;>

F.

0 new messages