wiggin77 / mailrelay Goto Github PK
View Code? Open in Web Editor NEWSimple 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
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
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 ?
Mailrelay looks really interesting
https://github.com/wiggin77/mailrelay
with the Windows Binary that you have for download, where does it install and where is the config file
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.
Utilized the recommend Windows build - no errors code seem to have been thrown just quick cmd windows opens and closes.
Running the windows binary does nothing.
I was trying this out in a few places, but it keeps adding a strange footer (copy pasted below) and I was wondering if you knew where it came from?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.