DevHeads.net

Postings by DecebalICT

Getting my mail hoster to accept my cron output emails

I switched from mail hoster. The from address from a cron job is created by
postfix. This was something like: <a href="mailto: ... at mail dot example.com"> ... at mail dot example.com</a>. My old provider
accepted this, but the new one does not. He says that the RFC says that you
should not accept emails with a non existing from address. Is this true?

I added in main.cf:
myorigin = $mydomain

Now the above becomes <a href="mailto: ... at example dot com"> ... at example dot com</a>.

But to make it work I would need to a mailbox for every user: root, www,
ftp, … With some cron versions you could use MAILFROM, but sadly this does
not work on Debian.

postfix check error and warning

When I run:
postfix check

I get:
/usr/lib/postfix/sbin/post-install: Error: /etc/postfix/postfix-files
is not a file.
postfix/postfix-script: warning: unable to create missing queue
directories

But as far as I can see postfix does what it should do.
I could ignore what is happening, but I do not like that.

I do not have a file:
/etc/postfix/postfix-files

I do have an empty directory:
/etc/postfix/postfix-files.d/

This is on Debian 9.7.

Can this SASL configuration be improved

In my main.cf I have:
############################################################
# SASL stuff
############################################################
smtp_sasl_auth_enable = yes
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = encrypt
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noplaintext, noanonymous
smtpd_sasl_auth_enable = no
# Because of POODLE vulnerability
smtpd_tls_mandatory_protocols=!SSLv2,!SSLv3
smtpd_tls_protocols=!SSLv2,!SSLv3
smtp_tls_mandatory_protocols=!SSLv2,!SSLv3
smtp_tls_protocols=!SSLv2,!SSLv3

​Is this

scan_dir_push: open directory defer: Permission denied

I went from an openSUSE system to a Debian 9 system.

I tried to copy and adapt my old config for the new system.

When running:
postfix check
I get:
postsuper: fatal: scan_dir_push: open directory defer: Permission denied

What could be the problem?

I already tried:
postfix -c /etc/postfix set-permissions

But that did not solve the problem.