1

Topic: no-reply account with no inbox

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi folks,

I'm wondering if it's possible to create a no-reply account which is used for send only for Servers? without using a personal email account.

Regards

Jack

----

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

2

Re: no-reply account with no inbox

why does it need to be a non email account?

3

Re: no-reply account with no inbox

Cthulhu wrote:

why does it need to be a non email account?

It needs to be a account that doesn't have a inbox and only used for Sending Emails.

4

Re: no-reply account with no inbox

then just set transport to discard, and all mail sent to it won't be delivered into a mailbox, but you still can sent mails trough it normally

5

Re: no-reply account with no inbox

Cthulhu wrote:

then just set transport to discard, and all mail sent to it won't be delivered into a mailbox, but you still can sent mails trough it normally

Where is this setting? in iRedadmin or in postfix config file?

6

Re: no-reply account with no inbox

you can set it either in the database (vmail.mailbox.transport) directly for the no-reply account, or trough iredadmin under advanced:

Accepting mails sent to this account on mail server (uncheck)

7

Re: no-reply account with no inbox

I think for Advanced setting you need to have iRedadmin Pro. Urmm ok will have to have a play.

8

Re: no-reply account with no inbox

UPDATE `vmail`.`mailbox` SET `transport`='discard' WHERE  `username`='no-reply@domain.tld';

9

Re: no-reply account with no inbox

Cthulhu wrote:

UPDATE `vmail`.`mailbox` SET `transport`='discard' WHERE  `username`='no-reply@domain.tld';

Sorry for a dumb question but where is it you do that? i am guessing the Database? do i need to do any changes to Postfix config itself?

Thanks

Jack

10

Re: no-reply account with no inbox

er, yes to the vmail database for sure, and no changes to files at all

11

Re: no-reply account with no inbox

Cthulhu wrote:

er, yes to the vmail database for sure, and no changes to files at all

ok cool cheers, will test this on a staging environment before i do changes to the Production Servers.

12 (edited by jackb 2023-01-25 00:17:42)

Re: no-reply account with no inbox

Just a update,

I've tested it on my staging server and it appears to work, logs show it immediately deletes the mail.

Jan 24 16:15:32 mx1 postfix/amavis/smtp[4143]: 4P1XBX4v2Kz737M: to=<no-reply@>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.3, delays=0.06/0/0/0.24, 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 4P1XBX6s30z737Q)
Jan 24 16:15:32 mx1 postfix/qmgr[2125]: 4P1XBX4v2Kz737M: removed

13

Re: no-reply account with no inbox

jackb wrote:

Just a update,

I've tested it on my staging server and it appears to work, logs show it immediately deletes the mail.

Jan 24 16:15:32 mx1 postfix/amavis/smtp[4143]: 4P1XBX4v2Kz737M: to=<no-reply@>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.3, delays=0.06/0/0/0.24, 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 4P1XBX6s30z737Q)
Jan 24 16:15:32 mx1 postfix/qmgr[2125]: 4P1XBX4v2Kz737M: removed

this only shows, that the mail got removed from qmgr, not deleted (which is always the case)

14

Re: no-reply account with no inbox

Cthulhu wrote:
jackb wrote:

Just a update,

I've tested it on my staging server and it appears to work, logs show it immediately deletes the mail.

Jan 24 16:15:32 mx1 postfix/amavis/smtp[4143]: 4P1XBX4v2Kz737M: to=<no-reply@>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.3, delays=0.06/0/0/0.24, 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 4P1XBX6s30z737Q)
Jan 24 16:15:32 mx1 postfix/qmgr[2125]: 4P1XBX4v2Kz737M: removed

this only shows, that the mail got removed from qmgr, not deleted (which is always the case)

I see, anyway to verify that mail is actually removed?

15

Re: no-reply account with no inbox

is there a mail in inbox? if no, then its deleted