|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
smtpd configuration issues
Hi all,
trying to configure smtpd on OpenBSD current. The server was sending mails using gmail smtp with no problem till gmail stopped using the less secure applications facility... now I am trying to configure with my company mail configuration. Basically I want the servers to send periodically system information. Here's my configuration; /etc/mail/smtpd.conf table aliases file:/etc/mail/aliases table secrets file:/etc/mail/secrets listen on lo0 action "local" mbox alias <aliases> action "relay" relay host smtp+tls://LABEL@smtp.XXXXX.com:587 auth <secrets> match for local action "local" match for any action "relay" And /etc/screts LABEL mymail@XXXXX.com:mypasswd smtpd is not sending mails anymore... the same configuration was working using a gmail account... any idea where's the problem ? I appreciate your help, |
|
|||
Thanks for your help.
after Checking /var/log/maillog , this seems to be the error: 25169039c23384d6 mta error reason=IO Error: certificate verification failed: error number 1 Any idea how to solve this? Thanks, |
|
|||
Gmail stopped me all of a sudden getting and sending mail.
Gmail is not now, or will not soon, allow what they consider less secure aps connect to gmail server without following their new guidelines. In my case it was neomutt and getmail. if this "might" be a similar issue there was a discussion here where the last entry by me was the correct one. I am probably way off the mark but figure i'd throw my 2 cents in. Last edited by frcc; 26th June 2022 at 11:03 AM. |
|
|||
Quote:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
You are connecting to the remote server with "smtp+tls" -- this is a mandatory TLS connection. The issue is either:
Last edited by jggimi; 26th June 2022 at 12:18 PM. Reason: clarity |
|
|||
Hi all,
thanks for your replies and comments but it seems that my mail server does not like smtpd, so that I downloaded, compiled and installed the simple MTA ssmtp - https://github.com/ajwans/sSMTP - and my server is sending mails again. Despite this software is not in the OpneBSD ports tree it compliles straightaway. In case you are interested I configured my server as follows: I stopped the smtpd daemon - #rcctl stop smtpd - and did #rcctl disable smtpd in order not to start it when the server boots again. I also changed the file /etc/mailer.conf like this: # $OpenBSD: mailer.conf,v 1.7 2015/12/07 12:32:06 sunil Exp $ # # Execute the "real" sendmail program, which is now smtpd by default # #sendmail /usr/sbin/smtpctl #send-mail /usr/sbin/smtpctl #mailq /usr/sbin/smtpctl #makemap /usr/sbin/smtpctl #newaliases /usr/sbin/smtpctl sendmail /usr/local/sbin/ssmtp send-mail /usr/local/sbin/ssmtp mailq /usr/local/sbin/ssmtp makemap /usr/local/sbin/ssmtp newaliases /usr/local/sbin/ssmtp Basically you must tell the server to use ssmtp instead of smtpctl. Thanks again for you help! Last edited by rdikarlus; 27th June 2022 at 02:46 PM. |
|
||||
It could be the other way around instead. Perhaps smtpd does not like your remote mail server.
Quote:
Congratulations on establishing your mail server connection! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
nginx configuration issues | pseudostem | OpenBSD Packages and Ports | 5 | 22nd June 2022 03:08 AM |
snmpd vs. net-snmp configuration issues | MatthiasKoch | OpenBSD General | 3 | 28th April 2016 07:01 AM |
smtpd as a relay | bceverly | OpenBSD General | 13 | 7th October 2015 04:52 PM |
Help with smtpd as a relay | rjdelacr | OpenBSD General | 5 | 6th October 2015 08:48 PM |
Switched over from sendmail(8) to smtpd(8) by default. | gpatrick | OpenBSD General | 0 | 5th October 2014 03:56 PM |