You need to use different smtp proxy port numbers (like 11025 and 11026) so you can select which smtp server you want to use.
Hello! As you've said, I edited my stunnel configuration to:
; have Stunnel work as a client (not as a server)
client=yes
; imap service, listens on localhost:11143
[gmail-imaps]
accept=127.0.0.1:11143
connect=imap.gmail.com:993
; SMTP service, listens on localhost:11025
[gmail-smtps]
protocol=smtp
accept=localhost:11025
connect=smtp.gmail.com:465
; POP3 service, listens on localhost:11110
[yahoomail-pop3s]
accept=127.0.0.1:11110
connect=pop.mail.yahoo.com.ph:995
; SMTP service, listens on localhost:11026
[yahoomail-smtps]
protocol=smtp
accept=127.0.0.1:11026
connect=smtp.mail.yahoo.com.ph:465
Is it correct? Why can't I send email on both gmail and yahoo? It says the server has not responded. And why is it, eventhough I use two different smtp proxy port numbers (11025 & 11026), in the error message (pasted below), the port for two email accounts are the same?
[ Subject 'TESTING', Account: 'Gmail', Server: 'localhost', Protocol: SMTP,
Port: 11025, Secure(SSL): No, Error Number: 0x800CCC19 ]
[ Subject 'TESTING', Account: 'Yahoo Mail', Server: 'localhost', Protocol: SMTP,
Port: 11025, Secure(SSL): No, Error Number: 0x800CCC19 ]
Receiving email has no problem. But sending, what seems to be the problem?
Please help me. Thanks.