An old question of mine that keeps resurfacing every now and then is this:
Is it possible to create a "direct-send" SMTP server using Perl?
Last time I checked this out, the SMTP server modules on CPAN would act as relay servers... they could receive requests to send e-mails out, but they wouldn't literally send them. They'd redirect them through another SMTP server which can send them.
The closest way I found to do this was to use Net:NS to look up the DNS information of the domains of the recipients, and from that, get their MX records and go through the SMTP process. But this didn't seem to work very efficiently. Yahoo Mail users, for instance, would have a difficult time receiving e-mails sent from such a server setup.
I've downloaded other personal SMTP servers that I use which can directly send e-mails out, and they send to Yahoo Mail users just fine.
Here are the modules I've played around with:
Net::SMTP::Server acts as an SMTP server and can save incoming messages. It doesn't seem to be able to send them out though. It uses Net::SMTP::Server::Relay to send outgoing messages which, again, is a relay server.
Net::SMTP::Server::Relay uses Net:NS to look up MX records, which, last time I checked, doesn't work well with Yahoo Mail (I haven't done extensive testing against other domains yet).
Has anyone managed to make an outgoing e-mail server in Perl?
Is it possible to create a "direct-send" SMTP server using Perl?
Last time I checked this out, the SMTP server modules on CPAN would act as relay servers... they could receive requests to send e-mails out, but they wouldn't literally send them. They'd redirect them through another SMTP server which can send them.
The closest way I found to do this was to use Net:NS to look up the DNS information of the domains of the recipients, and from that, get their MX records and go through the SMTP process. But this didn't seem to work very efficiently. Yahoo Mail users, for instance, would have a difficult time receiving e-mails sent from such a server setup.
I've downloaded other personal SMTP servers that I use which can directly send e-mails out, and they send to Yahoo Mail users just fine.
Here are the modules I've played around with:
Net::SMTP::Server acts as an SMTP server and can save incoming messages. It doesn't seem to be able to send them out though. It uses Net::SMTP::Server::Relay to send outgoing messages which, again, is a relay server.
Net::SMTP::Server::Relay uses Net:NS to look up MX records, which, last time I checked, doesn't work well with Yahoo Mail (I haven't done extensive testing against other domains yet).
Has anyone managed to make an outgoing e-mail server in Perl?