iredmail-doc/4-howto/allow.user.to.send.email.wi...

30 lines
545 B
Markdown
Raw Normal View History

2014-09-22 21:47:49 -05:00
# Allow user to send email without authentication
[TOC]
Create a plain text file: `/etc/postfix/accepted_unauth_senders`:
```
fax-machine-12@mydomain.tld OK
```
Use postmap to create hash db file:
```
# postmap hash:/etc/postfix/accepted_unauth_senders
2014-09-22 21:47:49 -05:00
```
Modify Postfix to use this text file: `/etc/postfix/main.cf`
```
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/accepted_unauth_senders,
[...OTHER RESTRICTIONS HERE...]
```
Restart/reload postfix to make it work:
```
# /etc/init.d/postfix restart
```