GithubHelp home page GithubHelp logo

wiggin77 / mailrelay Goto Github PK

View Code? Open in Web Editor NEW
60.0 6.0 20.0 31 KB

Simple mail relay that can take unauthenticated SMTP emails (e.g. over port 25) and relay them to authenticated, TLS-enabled SMTP servers.

License: MIT License

Go 95.46% Shell 4.54%
smtp-relay

mailrelay's People

Contributors

dependabot[bot] avatar philippebeaulieu avatar wiggin77 avatar ziadmoubayed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mailrelay's Issues

Cannot wend email

Hi,

I have troubels using this program, it look like smtp_starttls config is ignored

here is my config file

{ "smtp_server": "in-v3.mailjet.com", "smtp_port": 587, "smtp_starttls": "false", "smtp_username": "9xxxf", "smtp_password": "5...9", "smtp_max_email_size": 10485760, "smtp_login_auth_type": false, "local_listen_ip": "127.0.0.1", "local_listen_port": 2525, "allowed_hosts": ["*"], "timeout_secs": 30 }

here the log :
C:\Program Files\MailRelay>mailrelay-windows-amd64.exe -config config.json -test -sender "[email protected]" -rcpt "[email protected]" time="2024-05-22T17:25:10+02:00" level=info msg="processing worker started (#2)" time="2024-05-22T17:25:10+02:00" level=info msg="processing worker started (#3)" time="2024-05-22T17:25:10+02:00" level=info msg="processing worker started (#1)" time="2024-05-22T17:25:10+02:00" level=info msg="Starting: 127.0.0.1:2525" time="2024-05-22T17:25:10+02:00" level=info msg="Listening on TCP 127.0.0.1:2525" time="2024-05-22T17:25:10+02:00" level=info msg="main log configured to stdout" time="2024-05-22T17:25:10+02:00" level=info msg="Handle client [127.0.0.1], id: 1" time="2024-05-22T17:25:10+02:00" level=info msg="Mail from: [email protected] / to: [{user domain.fr [] [] false false <nil> false}]" time="2024-05-22T17:25:10+02:00" level=info msg="Headers are:map[From:[[email protected]] Subject:[Test message]]" time="2024-05-22T17:25:10+02:00" level=info msg="starting email send -- from:[email protected], starttls:true" time="2024-05-22T17:25:40+02:00" level=error msg="Backend has timed out while saving email" Error closing conn: close tcp 192.168.1.59:50349->104.199.96.85:465: use of closed network connection

I'm on Windows, I tried port 25 or 587, event 465 :)

Can you help me on this ?

Trying to send to Office365 throws TLS error

Hi

Looks like a great utility, exactly what I was looking for, but I ran into a snag trying to send email to Office365:

Config file:

{
	"smtp_server": "smtp.office365.com",
	"smtp_port": 587,
	"smtp_username": "[email protected]",
	"smtp_password": "abcdef",
	"local_listen_port": 25,
	"local_listen_ip": "0.0.0.0",
	"allowed_hosts": ["*"]
}
Throws:
!!! dial error: tls: first record does not look like a TLS handshake
�[31mERRO�[0m[0050] dial error: tls: first record does not look like a TLS handshake
�[37mDEBU�[0m[0050] Writing response to client:
554 Error: dial error: tls: first record does not look like a TLS handshake

�[37mDEBU�[0m[0050] Client sent:
�[33mWARN�[0m[0050] Client closed the connection: 127.0.0.1       �[33merror�[0m=EOF

Am using an application password for the authentication, but also tried with a non-MFA account - same error.

Also, noticed a missing comma on the end of the local_listen_ip entry in the JSON config.

Run in Background on Windows

Hi there,

is there any way to run the working program in background on Windows? I tried with piping & redirecting to NUL but without success. It keeps having the prompt open.
Might be a simple edit in the source so it won't output to stdout, but i am not into Go. But i can compile it on my own, if anyone has a hint, i would be thankful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.