
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
IMAP-to-SMTP relay: imaprelay relays messages from an IMAP INBOX to an SMTP server
imaprelay
is a simple tool designed to scratch a very specific itch.
Presented with an institutional email account that he had an obligation
to check, but lacking desire to use the Outlook Web Access interface, the
author was dismayed to find that he was unable to forward his email.
The solution is imaprelay
, a python program that logs into an IMAP
account and relays emails from the Inbox to a specified email address,
via an SMTP server. Once relayed, emails are "archived" -- moved out of
the inbox into a different folder.
Although usable programmatically [#code]_, it is expected that most people
will want to use the imaprelay
command-line tool that this package
provides.
By default, this program will look for a configuration file in
~/.secret/imaprelay.cfg
-- its location should indicate that it needs
to contain plain-text passwords for IMAP and SMTP servers, and thus the
program will exit immediately if the file is group- or world-readable.
The available configuration options are listed below::
# IMAP server connection details
[imap]
hostname=imap.exchange.megacorp.com
username=j.bloggs
password=123password
# SMTP server connection details
[smtp]
hostname=mail.recipient.com
username=joe_bloggs
password=passw0rd
# Relay configuration
[relay]
# Who should we relay the emails to?
to=onward@recipient.com
# Where should we look for emails to be relayed?
inbox=INBOX
# Where should we move the emails once successfully relayed?
archive=Archive
Once you've written a config file, all you need to do is run::
imaprelay
For verbose logging, use::
imaprelay -v
Bug reporting
Please report bugs on Github <http://github.com/nickstenning/imaprelay/issues>
_.
.. [#code] See the imaprelay.Relay
class.
FAQs
IMAP-to-SMTP relay: imaprelay relays messages from an IMAP INBOX to an SMTP server
We found that imaprelay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.