Topic: How to create a Noreply Address/Alias
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I'd like know if it's possible to create a noreply mailbox AND a noreply mailAlias. If yes, how?
I've tried playing with the "enabledService" for a mailAlias and a User but I can't quite get what I want.
For example, if I have a "general@domain.com" as user and a "noreply@domain.com" as alias from which general can send mail with, I'd like it impossible for an external mail user to reply to general using "noreply@domain.com".
So far my LDAP objects when I create an mailAlias are with these values :
mail : noreply@domain.com
accountStatus : active
enabledService: mail, deliver
cn : Noreply TEST
mailForwardingAddress : general@domain.com
objectClass : mailAlias, top
I've tried deleting "mail" and "deliver" on the services, adding "deliver" or "mail" in disabledService. But none of it worked. Maybe there's a combination on enabled/disabled services that I don't know.
This is what I get if I send back a reply to "noreply@domain.com", forwarding to "general@domain.com" with "external.user@domain.com". In my LDAP, I've added the attribute
disabledService : mail, deliver
to the mailAlias "noreply@domain.com". It does nothing, apparently.
Ideally, I'd like such reply to be dropped.
Oct 31 14:25:53 smtp postfix/postscreen[30167]: CONNECT from [209.85.166.175]:50518 to [loca IP]:25
Oct 31 14:25:59 smtp postfix/postscreen[30167]: PASS OLD [209.85.166.175]:50518
Oct 31 14:25:59 smtp postfix/smtpd[30172]: connect from mail-it1-f175.google.com[209.85.166.175]
Oct 31 14:25:59 smtp postfix/smtpd[30172]: Anonymous TLS connection established from mail-it1-f175.google.com[209.85.166.175]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Oct 31 14:26:00 smtp postfix/smtpd[30172]: 315052057F: client=mail-it1-f175.google.com[209.85.166.175]
Oct 31 14:26:00 smtp postfix/cleanup[30142]: 315052057F: message-id=<CAAeq73dEenQh6LZ_nCuL+_TgygP488YGJ3uRtU2e4AMVYdbufg@mail.gmail.com>
Oct 31 14:26:00 smtp postfix/qmgr[1438]: 315052057F: from=<external.user@gmail.com>, size=3516, nrcpt=1 (queue active)
Oct 31 14:26:00 smtp postfix/smtpd[30172]: disconnect from mail-it1-f175.google.com[209.85.166.175] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Oct 31 14:26:05 smtp postfix/10025/smtpd[30148]: connect from localhost[127.0.0.1]
Oct 31 14:26:05 smtp postfix/10025/smtpd[30148]: 3A5FA20614: client=localhost[127.0.0.1]
Oct 31 14:26:05 smtp postfix/cleanup[30142]: 3A5FA20614: message-id=<CAAeq73dEenQh6LZ_nCuL+_TgygP488YGJ3uRtU2e4AMVYdbufg@mail.gmail.com>
Oct 31 14:26:05 smtp postfix/qmgr[1438]: 3A5FA20614: from=<external.user@gmail.com>, size=4071, nrcpt=1 (queue active)
Oct 31 14:26:05 smtp postfix/10025/smtpd[30148]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Oct 31 14:26:05 smtp amavis[15805]: (15805-01) Passed CLEAN {RelayedInbound}, [209.85.166.175]:50518 [209.85.166.175] <external.user@gmail.com> -> <general@domain.com>, Queue-ID: 315052057F, Message-ID: <CAAeq73dEenQh6LZ_nCuL+_TgygP488YGJ3uRtU2e4AMVYdbufg@mail.gmail.com>, mail_id: WtcR_IzWQ9YH, Hits: -0.098, size: 3516, queued_as: 3A5FA20614, dkim_sd=20161025:gmail.com, 4827 ms, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FREEMAIL_FROM=0.001,HTML_MESSAGE=0.001,SPF_PASS=-0.001,URIBL_BLOCKED=0.001]
Oct 31 14:26:05 smtp postfix/amavis/smtp[30143]: 315052057F: to=<general@domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.1, delays=0.25/0/0.01/4.8, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3A5FA20614)
Oct 31 14:26:05 smtp postfix/qmgr[1438]: 315052057F: removed
Oct 31 14:26:05 smtp postfix/pipe[30178]: 3A5FA20614: to=<general@domain.com>, relay=dovecot, delay=0.07, delays=0.01/0.03/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct 31 14:26:05 smtp postfix/qmgr[1438]: 3A5FA20614: removed
I'm still trying to understand how everything is working on IredMail server so excuse me if there's something I missed in the documentation. Also, the other noreply topics don't seem to try a noreply alias, hence my own topic for it.
I've got another question related to the attribute EnabledService. When we create an account using the iredadmin page, it fills this attribute with all these values :
enabledService :
- mail
- deliver
- lda
- lmtp
- smtp
- smtpsecured
- pop3
- pop3secured
- pop3tls
- imap
- imapsecured
- imaptls
- managesieve
- managesievesecured
- sogo
- sieve
- sievesecured
- forward
- senderbcc
- recipientbcc
- internal
- lib-storage
- indexer-worker
- doveadm
- dsync
- shadowaddress
- displayedInGlobalAddressBook
I understand some of these, but not all. And I guess there are some missing. Is there a documentation where we can read about all of these, to understand what effects they can have on the postfix configuration?
Thank you!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.