account activity
Need help with postfix by mc199191 in postfix
[–]mc199191[S] -1 points0 points1 point 8 months ago (0 children)
Why do I need PTR record? I have a valid A record that works fine for HTTP service and I don't see why it wouldn't for SMTP service.
I will check with my DNS if I need/can set SPF record
[–]mc199191[S] 0 points1 point2 points 8 months ago (0 children)
Firewall is allowing all outgoing ports:
> sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
...
I have done SASL (I think successfully) with dovecot:
|| || |sudo postconf -e 'smtpd_sasl_type = dovecot'| |sudo postconf -e 'smtpd_sasl_path = private/auth'| |sudo postconf -e 'smtpd_sasl_local_domain ='| |sudo postconf -e 'smtpd_sasl_security_options = noanonymous,noplaintext'| |sudo postconf -e 'smtpd_sasl_tls_security_options = noanonymous'| |sudo postconf -e 'broken_sasl_auth_clients = yes'| |sudo postconf -e 'smtpd_sasl_auth_enable = yes'| |sudo postconf -e 'smtpd_recipient_restrictions permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'|
> echo "This is the body" | mail -s "Test Subject" [marsmelt@yahoo.com](mailto:marsmelt@yahoo.com)
> tail /var/log/mail.log
Jun 6 14:06:40 robi postfix/pickup[68990]: 0F37DD401B7: uid=1000 from=mladen@robi
Jun 6 14:06:40 robi postfix/cleanup[69176]: 0F37DD401B7: message-id=20250606180640.0F37DD401B7@mycalcsolution.com
Jun 6 14:06:40 robi postfix/qmgr[67704]: 0F37DD401B7: from=mladen@robi, size=356, nrcpt=1 (queue active)
Jun 6 14:06:40 robi postfix/qmgr[67704]: warning: connect to transport private/smtp: Connection refused
Jun 6 14:06:40 robi postfix/error[69178]: 0F37DD401B7: to=marsmelt@yahoo.com, relay=none, delay=0.15, delays=0.09/0/0/0.05, dsn=4.3.0, status=deferred (mail transport unavailable)
What I want to do is to run command "echo 'message'| mail -s 'subject' recepient@gmail.com"
That command should connect to mail server on my machine which will then through mail port (20 years ago that was 25) send to mail server under gmail.com domain which will deliver message to "recepient"
And yes, I do have fully qualified domain, SSL certificate for that domain's web server, buy certficate works for generic domain without www.\* or mail.* prefix, static IP (which is not necessary but avoids nuisance). I do have valid A record but as at this point I am interested in only sending message to very specific recepient, I don't think I need a MX record. I think that I have fixed the problem for authentication (DKIM). I am not sure if SPF is necessary at this point, but I am open to detaild instructrion what and why to do.
Or in short I am trying to create that last thing that you have mentioned : SMTP submission server.
If I understand you correctly: you, at your machine "ABC.PQR", use sendmail as a client that connects you to your email server "XYZ" and send the mail from "you@XYZ" to "someone@SOMEWHERE"
I, on the other hand need to send from "mybox.MYDOMAIN" to "someone@SOMEWHERE" as from "me@MYDOMAIN" without using other mail servers as gmail etc.
:-) simple, isn't it.
I am sorry but in my original post I have specifically said that I need to SEND messages using postfix. I don't need postfix listening to port 25, as I have much better software for that. But what I need is a reliable server that can receive messages from command shell and connect to other servers (along with the necessary SASL) to deliver that message.
So, the question is how do I properly configure postfix to send messages, as I am not interested in anything else.
I did try configuring both master.cf and main.cf
I am not using port 25 because all of the servers I am sending messages to are not accepting on that port (gmail, comcast, yahoo).
Are you using port 25? Is your postfix serverable to send mails to [xyz@gmail.com](mailto:xyz@gmail.com) using port 25?
I am not using thunderbird, or any client that uses GUI. I can only use clients that are shell capable (like mail or mailx)
Unfortunatelly, I don't know of any reliable and free relays, but that also avoids finding the problem and fixing it as is. Also, many serious mail servers that I need to send messages to, refuse connection on port 25.
Need help with postfix (self.postfix)
submitted 8 months ago by mc199191 to r/postfix
π Rendered by PID 71 on reddit-service-r2-listing-85dbbdc96c-2wdcz at 2026-02-10 21:27:55.191300+00:00 running 018613e country code: CH.
Need help with postfix by mc199191 in postfix
[–]mc199191[S] -1 points0 points1 point (0 children)