1 (edited by TaKeN 2020-04-06 12:28:40)

Topic: Allow local ip address sending e-mails without any restriction and RFC

Hey,
I try do Open-Relay for 1 local IP address he send email from: admin@mylab.local to admin@mylab.local
i got verry old device at my home and he send me everyday report, the most problem he can`t send login/passwd - he just send normal plain text without any RFC....
I add to main.cf:
mynetworks = 127.0.0.1 [::1] 10.10.10.10
to /opt/iredapd/settings.py
MYNETWORKS = ['10.10.10.10']
and change in main.cf:
# Data restrictions
smtpd_data_restrictions = permit_mynetworks reject_unauth_pipelining
because got it:
"Data command rejected: Improper use of SMTP command pipelining"
after adding to data_restriction permin_mynetworks everything working but.....

Apr  6 06:12:29 poczta postfix/qmgr[45732]: 48wcZM4fqtzJnFs: removed
Apr  6 06:12:29 poczta postfix/pipe[46498]: 48wcZP0Vy9zJnG7: to=<admin@mylab.local>, relay=dovecot, delay=0.03, delays=0/0.01/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Apr  6 06:12:29 poczta postfix/qmgr[45732]: 48wcZP0Vy9zJnG7: removed

but there is nothing at my mailbox via POP3....
after login via webpage i saw - there is in SPAM box....

You got maybe any idea how to do properly and not mark as spam this e-mail?

And another question why default is:
smtpd_data_restrictions = reject_unauth_pipelining
not
smtpd_data_restrictions = permit_mynetworks reject_unauth_pipelining
?

Best Regards
TaKeN

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Allow local ip address sending e-mails without any restriction and RFC

omfg.. i am so stupid...
file: /etc/spamassassin/local.cf
trusted_networks 10.10.10.10

Problem solved ;-)
This is a properly problem solved? Or i do something wrong?
I am new user and try to understand how it`s working :-)


Best Regards
TaKeN

3

Re: Allow local ip address sending e-mails without any restriction and RFC

Your solution is quite good in your case actually. smile