Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrade opensmtpd not work #1139

Open
tceydeliler opened this issue Aug 23, 2021 · 1 comment
Open

After upgrade opensmtpd not work #1139

tceydeliler opened this issue Aug 23, 2021 · 1 comment

Comments

@tceydeliler
Copy link

Hi,
I am newbie. I have a simple configuration, suc as:

table sourceaddr file:/etc/opensmtpd/sourceaddr
accept <sourceaddr> for any relay via smtp:https://10.40.4.4

But, after CentOS 7 update, and opensmtpd, smtpd server give syntax error for this line
Can you help me abot rhat?
What should be my simple config?

@jdelic
Copy link

jdelic commented Aug 23, 2021

@tceydeliler

If you're using version 6.8 (Google suggests that CentOS7 ships 6.8.0p2), your smtpd.conf is in the wrong format. Your smtpd.conf uses version the opensmtpd configuration format that was discontinued after opensmtpd 6.1 (listen/accept/reject). You should use the new format (listen/match/action). Here is a link to a (Jinja templated) example from my Salt configuration so you can see what that looks like.

You can read more about that at the public man page for smtpd.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants