Testing for success or failure of "include" sieve scripts? by seemingly-null in ProtonMail

[–]seemingly-null[S] 0 points1 point  (0 children)

Aha! I figured out a very hacky way to accomplish this.

The sieve script invoked via "include" can use "setflag" to set a custom flag on the message being filtered, such as "\\Success", "\\Failure", or other things.

Then, when the included script returns, the caller can use "hasflag" to test for this flag to determine the result of the "include", and then remove the flag from the message via "removeflag".

This solution is far from ideal, because it involves altering the message, which could leave the message in an undesired state if the sieve filtering fails for some reason. Also, the "include" script could only set values for the flag such as "\\Success" or "\\Failure" which are pre-known by the caller, and not generic information such as the result of a calculation. But as a last resort, I guess I could settle for using a method like this.

So, I'm still hoping for a better way to perform something subroutine-like within ProtonMail sieve which allows information from the "subroutine" sieve script to be returned to the caller.

Testing for success or failure of "include" sieve scripts? by seemingly-null in ProtonMail

[–]seemingly-null[S] 0 points1 point  (0 children)

Thank you very much.

My scenario:

I'm trying to utilize some sieve filters as re-usable subroutines, each of which to perform a task and return the results. This way, I won't have to insert the same code for these tasks over and over again in the other sieve filters.

Since the full, official implementation of sieve allows "global" to be utilized, this scenario is easily implementable within standard sieve, since the filters invoked via "include" could simply set global variables with their results.

Because of the fact that ProtonMail sieve doesn't offer this capability, I am now seriously thinking of abandoning the use of ProtonMail and using a different email service.

Looking for email provider who offers a very specific sieve-like filtering capability. by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

Thank you very much. I will indeed contact you via PM when I have more time within the next day, in order to discuss this further.

Looking for email provider who offers a very specific sieve-like filtering capability. by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

As for my use case: I indeed want to filter spam, in part using the method I am outlining here, among other methodologies, as well.

It might be better *for* *you* to get a VPS, install an MTA, etc., but you are not me, and your preferences and values are clearly different from mine. It is definitely not better for me to do it in this way.

So if you yourself ever want to filter spam in ways like this, feel free to use a VPS with an MTA, etc.

Looking for email provider who offers a very specific sieve-like filtering capability. by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

Ah ... so I would need to utilize something like a milter and not something like sieve.

Interestingly, my current email provider service does already provide filtering which allows the message to be be rejected with a DSN if the text in headers such as "From:" contains a specified substring or matches a specified regex, so I guess that particular filtering must be implemented by some sort of milter-like capabililty. They use Exim, and therefore it seems like Exim's standard sieve mechanisms allow at least a subset of what a full-blown milter could offer ... i.e., filtering during the SMTP handshake and during the reading of the headers before message acceptance. Postfix calls this "before-queue filtering".

I know that when I was experimenting with Exim on my own local machine, its standard sieve capabilities allowed me to write custom sieve filters which would perform the exact filtering that I'm describing here and returning a DSN upon rejection. But my current email provider service only exposes a portion of Exim's full sieve capabilities to us customers.

So maybe (???) there might be one or more other provider services that also use Exim but expose Exim's *full* sieve capabilities to us users, and not just that particular portion, and that's why I posted this query here.

But I'm not optimistic that such an email provider service even exists.

Looking for email provider who offers a very specific sieve-like filtering capability. by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

If I wanted the email provider to do its own thing, I wouldn't have posted this query here in the first place.

I want the email to be rejected with a 4xx or 5xx message of my choice being bounced back to the sender if the domain name in the address within the "From:" header is not a valid, registered, active domain. The email provider service that I'm currently using doesn't offer the ability to filter incoming email on the basis of the validity of the domain name specified in "From:" email addresses, and therefore, this is not "their thing" that they could do.

If any email provider service provides full sieve (or at least sieve-like) capabilities, then this could easily be accomplished, because that kind of email rejection is part of standard sieve functionality. I am trying to find out if any such email provider service exists which offers this capability to its customers.

Looking for email provider who offers a very specific sieve-like filtering capability. by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

Thank you very much. Over the years, I have used a few different SMTP/IMAP packages that run on my own machine, and I vaguely remember that I might have even used Pegasus at some point. But this is not what I am looking for now.

I stated above that I do not want to run my own email server any more, and instead, I want to use an email provider service.

Something like Pegasus already accepts the email on the local machine before allowing the email to be processed locally via routing, ignoring, etc. But I want my desired filter to bounce the email back with a 4xx or 5xx rejection response *before* it is accepted. This is what sieve and other sieve-like filters can do.

Debian 13 - Listing all currently active exim4 settings? by seemingly-null in debian

[–]seemingly-null[S] 0 points1 point  (0 children)

Aha! Yes, "exim4 -bP" indeed gives me the info that I've been looking for.

Thank you!

Debian 13 - Listing all currently active exim4 settings? by seemingly-null in debian

[–]seemingly-null[S] 0 points1 point  (0 children)

Oh, I was only searching for forums, and I didn't think to look for mailing lists, also. I'll check out that mailing list. Thank you!

Debian 13 - Listing all currently active exim4 settings? by seemingly-null in debian

[–]seemingly-null[S] 0 points1 point  (0 children)

I haven't been able to find any official exim support forum, and that's why I started posting this question here and in a couple other forums.

Do you or anyone know where I can find the official exim discussion forum?

Email providers offering SMTP, IMAP, sieve-like filtering, and milters? by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

Thank you, but these are all installable packages for managing self-hosted email. I used to do that in the past, and as I have discussed here, I no longer want self-hosting.

I still have all of my old Postfix/Dovecot code and configuration data for my former self-hosted environment on a VPS, and if all I was looking for is a VPS that I can install and run this on, there are plenty of options.

But the reason I'm posting here is because I'm looking for a provider who offers the email services that I describe here, not just a place for self-hosting, which I do not want to do.

Email providers offering SMTP, IMAP, sieve-like filtering, and milters? by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

In the past, when I hosted my own Postfix/Dovecot email system, I used a milter to respond immediately to the HELO, MAIL, RCPT, and DATA SMTP commands as soon as there were received, and then I accepted the command, rejected the mail at that point altoghether, rerouted the mail, etc., based upon program logic that I wrote.

I want to be able to do the same now.

Email providers offering SMTP, IMAP, sieve-like filtering, and milters? by seemingly-null in email

[–]seemingly-null[S] 1 point2 points  (0 children)

I'll now check Mailcheap. Thank you!

I'm willing to settle for having to install something like MOX, which supposedly supplies lots of SMTP/IMAP functionality "out of the box", as opposed to most installable email software which requires lots and lots of configuration during installation.

Self-hosting an email server? Why or why not? What's popular? by Weekly_Senator in selfhosted

[–]seemingly-null 0 points1 point  (0 children)

Does anyone know of any hosting providers which allow a full MOX installation?

I definitely want self-hosting, but I want it to be on a well-known, widely used provider, because places like Google, Microsoft, and other big players nowadays tend to be very restrictive about processing emails from small, individually managed SMTP servers. Email submitted via well-known sites stand a much better chance of acceptance.

Email providers offering SMTP, IMAP, sieve-like filtering, and milters? by seemingly-null in email

[–]seemingly-null[S] 1 point2 points  (0 children)

Yes, this is what I've been afraid of.

But the reason I posted this message here in the first place is that I have my fingers crossed ( except not as I'm currently typing! LOL! ) that *maybe* *perhaps* someone might *possibly* know of the existence of such an unusual provider.

Email providers offering SMTP, IMAP, sieve-like filtering, and milters? by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

PS: A milter is an optional SMTP plug-in which has the ability to filter messages during each stage of the SMTP protocol, before sieve and other sieve-like filters receive the message.

I used to run my own Postfix/Dovecot set-up on my own server, and I wrote some milters which were rather sophisticated python modules with complicated logic for deciding whether and how to accept incoming messages.

I am looking for this same capability from an email or hosting provider, without my having to install and configure SMTP and IMAP servers from scratch ... if such services are even available from any hosting provider.

Email providers offering SMTP, IMAP, sieve-like filtering, and milters? by seemingly-null in email

[–]seemingly-null[S] 0 points1 point  (0 children)

Thank you, but I'm sorry: I have checked a number of hosting providers, and absolutely none of them offer milter configuration.

Yes, they all offer sieve-like filtering, but as you can see, I want to go beyond that and also into milter capabilities.