public marks

PUBLIC MARKS from camel with tags mail & firewall

March 2008

SSH dynamic port forwarding with SOCKS

SSH has numerous uses beyond just logging into a remote system. In particular, SSH allows you to forward ports from one machine to another, tunnelling traffic through the secure SSH connection. This provides a convenient means of accessing a service hosted behind a firewall, or one blocked by an outgoing firewall. However, forwarding an individual port still requires you to change where your program connects, telling it to use a non-standard port on localhost rather than the standard port on the remote machine, and it requires a separate port forward for each machine you want to access. Dynamic port forwarding via SOCKS provides a more convenient alternative. The examples in this article assume that you reside behind a restrictive firewall which does not allow outgoing SMTP connections except to a designated mail server. You want to connect to a different mail server, mail.example.net, on port 25. You have an SSH account on a machine shell.example.org, which does not reside within the restrictive firewall and can thus access port 25 on mail.example.net.

January 2008

Zork[Yy]'s log : Connaissez-vous qpsmtpd ?...

by 1 other
qpsmtpd est un serveur SMTP très léger et très modulaire qui se base sur le principe des plugins et des hooks qu’il peut appeller à chaque instant du protocole SMTP : mail from, rcpt to, data, ... Le principe est de lancer qpsmtpd à l’écoute du port SMTP (25), charge à lui ensuite de faire les vérifications d’usage (beaucoup de plugins sont livrés dans le produit de base pour ce type d’opérations) pour ensuite relayer au serveur de messagerie qui écoutera sur un autre port (2525) par exemple. En gros qpsmtpd joue le rôle de firewall ou de frontal mail avant d’entrer dans l’infrastructure de la messagerie interne. L’avantage de cette technique est de pouvoir développer un plugin maison, avec des hooks à appeler selon ses besoins : on peut introduire des règles métiers sur les mails : vérification de l’existence du compte, vérification de l’expéditeur selon des règles qui nous sont propres, etc…et de couper la transaction SMTP avant même de recevoir le message : gain de temps et de ressources pour le serveur MTA en bout de chaîne.

camel's TAGS related to tag mail

admin +   administration +   antispam +   antivirus +   apache +   archive +   awstats +   backup +   bench +   benchmark +   benchmarking +   blog +   checkuser +   cluster +   collaboration +   community +   configuration +   Confirm +   control +   cron +   css +   database +   debian +   dev +   dns +   email +   exchange +   extension +   faq +   file +   firewall +   format +   free +   ftp +   gestion +   gmail +   gnome +   google +   google aps +   guide +   howto +   html +   http +   images +   imap +   incoming +   install +   interface +   internet +   lib +   linux +   list +   log +   management +   migration +   mobile +   mx +   mysql +   network +   online +   opensource +   outlook +   performance +   php +   plugin +   pop3 +   postal +   postfix +   proxy +   qmail +   remote +   ressources +   sauvegarde +   script +   secure +   server +   serveur +   service +   setup +   sfp +   share +   shell +   smtp +   software +   spam +   spf +   ssh +   standard +   standards +   test +   testing +   thunderbird +   tools +   tutorial +   ubuntu +   upload +   virus +   web +   winmail.dat +   yahoo +