Python cannot use SMTP...
JZ
cy.fbp.eryvtvne at ncbybtrglxn.pbz
Wed Sep 1 10:28:14 EDT 2004
Wed, 01 Sep 2004 15:45:55 +0200, na comp.lang.python, Thomas Krüger wrote:
>> smtplib.SMTPConnectError: (-1, "onnect: failed to connect to database:
>> Error: Access denied for user: 'admin at localhost' (Using password: YES)")
>
> That a MySQL error. I don't kwon how you made this error apear in your STMP
> connection, I can only guess:
> Does your STMP server any MySQL authentication?
I am not sure. I do not know if it is important but I am using VPS (virtual
computer) hosting. And I did not install sendmail. It was installed as I
got it.
> Are you running MySQL on port 25?
No, it works on standard port 3306.
> Maybe the right of your mail log and a the result of
> "netstat -nlp -A inet"
> would help us to find the problem.
Here is the result:
[root at xeon lib]# netstat -nlp -A inet
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 216.93.188.184:20000 0.0.0.0:* LISTEN
5912/perl
tcp 0 0 216.93.188.184:199 0.0.0.0:* LISTEN
4648/snmpd
tcp 0 0 216.93.188.184:3306 0.0.0.0:* LISTEN
20595/mysqld
tcp 0 0 216.93.188.184:10000 0.0.0.0:* LISTEN
6339/perl
tcp 0 0 216.93.188.184:8080 0.0.0.0:* LISTEN
4113/python
tcp 0 0 216.93.188.184:80 0.0.0.0:* LISTEN
20390/httpd
tcp 0 0 216.93.188.184:21 0.0.0.0:* LISTEN
7910/xinetd
tcp 0 0 216.93.188.184:8021 0.0.0.0:* LISTEN
4113/python
tcp 0 0 216.93.188.184:22 0.0.0.0:* LISTEN
17856/sshd
tcp 0 0 216.93.188.184:8280 0.0.0.0:* LISTEN
4113/python
tcp 0 0 216.93.188.184:25 0.0.0.0:* LISTEN
7910/xinetd
udp 0 0 216.93.188.184:10000 0.0.0.0:*
6339/perl
udp 0 0 216.93.188.184:20000 0.0.0.0:*
5912/perl
udp 0 0 216.93.188.184:161 0.0.0.0:*
4648/snmpd
--
JZ
More information about the Python-list
mailing list