If you want to apply the logic you are asking for to emails that are
transmitted, I think you need to work with custom filters for specific
logic (e.g. looking only at attachment size, per day limits, etc.).
There is no "here you go" answer to that, or simple smtpd.conf
statements that would do what you want. For overall message size you
can use max-message-size (see smtpd.conf(5)), but this doesn't sound
like it fits your requirement.
That said: I also think you need to dig deeper into how email works,
in general, and read the docs, thoroughly. Your questions here are
either very broad, or they simply don't apply to this mailing list.
For example you are asking here how to limit the overall size of the
mailbox and auto-delete old mails: the answer to that is, that it's
simply not the SMTP server's job to do any of that, as SMTP is about
email transmission, not about mailboxes.
In your case (from your original config example), your mailbox is a
maildir on disk, which you could limit with file system tools, but you
could use other message delivery agents (MDA) to have finer control of
what ends up where. Read up on them. Either way, this is the wrong
mailing list for that.
On Fri, Sep 01, 2023 at 05:22:20PM +0200, Sagar Acharya wrote:
I used mutt for accessing mail. I still am unable to send mail using
my server. I can receive mails.
I also completed the whitelist. How can I do this?
I want to allow access only upto 25MB attachments from whitelisted
emails and allow only 1email (only text based) per day from
non-whitelisted emails. How do I do that?
How do I limit overall size of mailbox and auto-delete old mails?
Thanking you
Sagar Acharya
https://humaaraartha.in
1 Sept 2023, 14:04 by [email protected]:
From the doc (smtpd.conf(5)):
maildir [pathname [junk]]
Deliver the message to the maildir in pathname if
specified, or by default to ~/Maildir.
So given your config, you seem to get exactly what you configured.
For your "whitelist", create the match rules for your domains, and for
everything else use a reject rule at the end.
On Fri, Sep 01, 2023 at 09:59:31AM +0200, Sagar Acharya wrote:
I got a mail, which lies in Maildir, however no mailbox is configured. Is there
a default mailbox in alpine and how do I access the mail contents in
~/Maildir
My mails are under
~/Maildir/new/
Also, how do I whitelist email ids, say, I want mails only from
[email protected]
[email protected]
[email protected]
That's it, no other mails.
Thanking you
Sagar Acharya
https://humaaraartha.in
1 Sept 2023, 12:42 by [email protected]:
How do I do that? What CLI tool do I use?
While starting the daemon, the configuration is OK as given in prompt.
With the DNS configuration I have, where can I send a mail, at
[email protected] or at [email protected] ?
Thanking you
Sagar Acharya
https://humaaraartha.in
31 Aug 2023, 01:06 by [email protected]:
On Wed, 30 Aug 2023, Sagar Acharya wrote:
I'm facing an issue similar to a person a while ago available on archive. I use
alpine, and the conf is as below
There is nothing in the mailbox.
Are you looking with alpine, or with CLI tools like ls? Use CLI tools to check
that you've configured smtpd to store incoming mail where you think you have.
I go so far as to use raw IPv6 for personal mailbox on various overlay mesh
vpns like Cjdns and Yggdrasil (giving you personal authenticated IPs
independent of any ISP). I just caught up with an online friend that moved
from Hawaii to New York. Still works despite changes in ISP and ICANN domains.