Topic: Allow send to alias
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Denbian9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No - maby letter
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello
I have a virtual domains an vusers. What do you propose to achieve. To create alias Which specific senders can send to ?
like:
all@vdomain1.com allow from user@gmail.com and martin@otherdomain.com.
and
allias2@secondvdomain allow jogn@gmail.com and jack@aol.com - other rejected
insidres_only not working what I need
In qmail i have that style map:
mysql> select * from limit_senders;
+------------------------------+------------------------------+---------+
| email/alias | regex | type |
+------------------------------+------------------------------+---------+
| all@vdomain.com | .+@allvdomain.com$ |PERMIT |
| all@vdomain.com | .+ |REJECT |
| all@OthevVdomain.com| .+@OthevVdomain.com$|PERMIT |
| all@OthevVdomain.com| .+ |REJECT |
+------------------------------+-------------------------------+-----------+
and perl skript like:
--------cut------------------
for x in permit:
if re.match(x[0], mail_from):
sys.stderr.write('limit_senders for %s match %s, accepting %s\n' % (rcpt_to, x[0], mail_from))
print 'SQMAILQUEUE=bin/qmail-queue'
print 'HX-Limit_senders: permit'
sys.stderr.write(os.getenv('QMAILQUEUE'))
sys.exit(0)
for x in reject:
if re.match(x[0], mail_from):
print 'E550 Sender disallowed by internal policy.'
sys.stderr.write('limit_senders for %s match %s, rejecting %s\n' % (rcpt_to, x[0], mail_from))
sys.exit(0)
except SystemExit,e:
pass
except Exception ,e:
sys.stderr.write(str(e))
sys.exit(0)
--------------- end ----------------------
Any idea or solutions ?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.