Re: Setting personal mailserver
Port 465 is the deprecated SMTPS submission port, you can't send mail to that. If you're trying to send out e-mail from a residential IP (even with an unblocked outoing port 25), you'll find more problems e.g. receiving servers not accepting your e-mails because of your IP having no FCrDNS etc. Good luck Reio On 02.09.2023 21:56, Sagar Acharya wrote: Port 25 outgoing is blocked. You were correct. I swotched to port 465 with config action "relay" relay host smtps://mydomain.com Such is the error message: Again there is "Network error on destination MXs" mta connecting address=smtps://{ipv4}:465 host={xyz} mta error reason=IO Error: Connection refused smtp-out: Disabling route [] <-> {ipv4} for 15s smtp-out: No valid route for [connector:[]->[relay:mydomain.com,port=465,smtps,mx],0x0] DNS mydomain.com MX 10 mydomain.com Port 465 is perfectly open from ISP. Thanking you Sagar Acharya https://humaaraartha.in 2 Sept 2023, 19:58 by tphil...@potion-studios.com: I tested all of the IPs from your output, and all of them listen on port 25 and a smtp server is answering. So if you are relaying to those via port 25, and you get a network error (I guess a timeout), then I guess your outgoing port 25 is blocked. This is relatively common with residential uplinks, ask your ISP to open port 25 for you. That said... I'm only guessing here. On Sat, Sep 02, 2023 at 03:52:37PM +0200, Sagar Acharya wrote: I made some progress. I am able to receive mails now but when I send mail from u...@mydomain.com to sagaracha...@tutanota.com using mutt , I get, result="TempFail" stat="Network error on destination MXs" smtp-out: Enabling route [] <-> 81.3.6.162 (w1.tutanota.de) smtp-out: Enabling route [] <-> 185.205.69.211 (185.205.69.211) smtp-out: Enabling route [] <-> 81.3.6.165 (w4.tutanota.de) mta error reason=Connection timeout DNS mydomain.com. 86400 IN MX 10 mail.mydomain.com. Thanking you Sagar Acharya https://humaaraartha.in 2 Sept 2023, 05:45 by bub...@live.de: Hello, pls show your config file. Mit freundlichen Grüßen, V.Bubnov 01.09.2023, в 21:43, Sagar Acharya написал(а): To enable being able to send mails from my server, I added tls certs. Now when I send from this email id to u...@mydomain.com , I get the error below. 530 5.5.1 Invalid command: Must issue an AUTH command first (in reply to MAIL FROM command) Since STARTTLS is working on 25, I think things should go smoothly but it isn't so. Please help. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 20:52 by sagaracha...@tutanota.com: 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 tphil...@potion-studios.com: 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 f...@bar.com f...@bar2.com f...@bar3.com That's it, no other mails. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 12:42 by sagaracha...@tutanota.com: 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 u...@mydomain.com or at u...@mail.mydomain.com ? Thanking you Sagar Acharya https://humaaraartha.in 31 Aug 2023, 01:06 by stu...@gathman.org: 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.
Re: Setting personal mailserver
Port 25 outgoing is blocked. You were correct. I swotched to port 465 with config action "relay" relay host smtps://mydomain.com Such is the error message: Again there is "Network error on destination MXs" mta connecting address=smtps://{ipv4}:465 host={xyz} mta error reason=IO Error: Connection refused smtp-out: Disabling route [] <-> {ipv4} for 15s smtp-out: No valid route for [connector:[]->[relay:mydomain.com,port=465,smtps,mx],0x0] DNS mydomain.com MX 10 mydomain.com Port 465 is perfectly open from ISP. Thanking you Sagar Acharya https://humaaraartha.in 2 Sept 2023, 19:58 by tphil...@potion-studios.com: > I tested all of the IPs from your output, and all of them listen on port 25 > and a smtp server is answering. So if you are relaying to those via port 25, > and you get a network error (I guess a timeout), then I guess your outgoing > port 25 is blocked. This is relatively common with residential uplinks, ask > your ISP to open port 25 for you. > > That said... I'm only guessing here. > > > On Sat, Sep 02, 2023 at 03:52:37PM +0200, Sagar Acharya wrote: > >> I made some progress. I am able to receive mails now but when I send mail >> from u...@mydomain.com to sagaracha...@tutanota.com using mutt , I get, >> >> result="TempFail" stat="Network error on destination MXs" >> smtp-out: Enabling route [] <-> 81.3.6.162 (w1.tutanota.de) smtp-out: >> Enabling route [] <-> 185.205.69.211 (185.205.69.211) smtp-out: Enabling >> route [] <-> 81.3.6.165 (w4.tutanota.de) >> mta error reason=Connection timeout >> >> >> DNS >> >> mydomain.com. 86400 IN MX 10 mail.mydomain.com. >> >> Thanking you >> Sagar Acharya >> https://humaaraartha.in >> >> >> >> 2 Sept 2023, 05:45 by bub...@live.de: >> >>> Hello, pls show your config file. >>> >>> Mit freundlichen Grüßen, V.Bubnov >>> 01.09.2023, в 21:43, Sagar Acharya написал(а): To enable being able to send mails from my server, I added tls certs. Now when I send from this email id to u...@mydomain.com , I get the error below. 530 5.5.1 Invalid command: Must issue an AUTH command first (in reply to MAIL FROM command) Since STARTTLS is working on 25, I think things should go smoothly but it isn't so. Please help. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 20:52 by sagaracha...@tutanota.com: > 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 tphil...@potion-studios.com: > >> 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 >>> >>> f...@bar.com >>> f...@bar2.com >>> f...@bar3.com >>> >>> That's it, no other mails. >>> Thanking you >>> Sagar Acharya >>> https://humaaraartha.in >>> >>> >>> >>> 1 Sept 2023, 12:42 by sagaracha...@tutanota.com: >>> 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 u...@mydomain.com or at u...@mail.mydomain.com ? Thanking you Sagar Acharya https://humaaraartha.in 31 Aug 2023, 01:06 by stu...@gathman.org: > > > 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
Re: Setting personal mailserver
I tested all of the IPs from your output, and all of them listen on port 25 and a smtp server is answering. So if you are relaying to those via port 25, and you get a network error (I guess a timeout), then I guess your outgoing port 25 is blocked. This is relatively common with residential uplinks, ask your ISP to open port 25 for you. That said... I'm only guessing here. On Sat, Sep 02, 2023 at 03:52:37PM +0200, Sagar Acharya wrote: I made some progress. I am able to receive mails now but when I send mail from u...@mydomain.com to sagaracha...@tutanota.com using mutt , I get, result="TempFail" stat="Network error on destination MXs" smtp-out: Enabling route [] <-> 81.3.6.162 (w1.tutanota.de) smtp-out: Enabling route [] <-> 185.205.69.211 (185.205.69.211) smtp-out: Enabling route [] <-> 81.3.6.165 (w4.tutanota.de) mta error reason=Connection timeout DNS mydomain.com. 86400 IN MX 10 mail.mydomain.com. Thanking you Sagar Acharya https://humaaraartha.in 2 Sept 2023, 05:45 by bub...@live.de: Hello, pls show your config file. Mit freundlichen Grüßen, V.Bubnov 01.09.2023, в 21:43, Sagar Acharya написал(а): To enable being able to send mails from my server, I added tls certs. Now when I send from this email id to u...@mydomain.com , I get the error below. 530 5.5.1 Invalid command: Must issue an AUTH command first (in reply to MAIL FROM command) Since STARTTLS is working on 25, I think things should go smoothly but it isn't so. Please help. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 20:52 by sagaracha...@tutanota.com: 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 tphil...@potion-studios.com: 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 f...@bar.com f...@bar2.com f...@bar3.com That's it, no other mails. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 12:42 by sagaracha...@tutanota.com: 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 u...@mydomain.com or at u...@mail.mydomain.com ? Thanking you Sagar Acharya https://humaaraartha.in 31 Aug 2023, 01:06 by stu...@gathman.org: 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.
Re: Setting personal mailserver
I made some progress. I am able to receive mails now but when I send mail from u...@mydomain.com to sagaracha...@tutanota.com using mutt , I get, result="TempFail" stat="Network error on destination MXs" smtp-out: Enabling route [] <-> 81.3.6.162 (w1.tutanota.de) smtp-out: Enabling route [] <-> 185.205.69.211 (185.205.69.211) smtp-out: Enabling route [] <-> 81.3.6.165 (w4.tutanota.de) mta error reason=Connection timeout DNS mydomain.com. 86400 IN MX 10 mail.mydomain.com. Thanking you Sagar Acharya https://humaaraartha.in 2 Sept 2023, 05:45 by bub...@live.de: > Hello, pls show your config file. > > Mit freundlichen Grüßen, V.Bubnov > >> 01.09.2023, в 21:43, Sagar Acharya написал(а): >> >> To enable being able to send mails from my server, I added tls certs. >> >> Now when I send from this email id to u...@mydomain.com , I get the error >> below. >> >> 530 >> 5.5.1 Invalid command: Must issue an AUTH command first (in reply to MAIL >> FROM command) >> >> Since STARTTLS is working on 25, I think things should go smoothly but it >> isn't so. Please help. >> Thanking you >> Sagar Acharya >> https://humaaraartha.in >> >> >> >> 1 Sept 2023, 20:52 by sagaracha...@tutanota.com: >> >>> 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 tphil...@potion-studios.com: >>> 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 > > f...@bar.com > f...@bar2.com > f...@bar3.com > > That's it, no other mails. > Thanking you > Sagar Acharya > https://humaaraartha.in > > > > 1 Sept 2023, 12:42 by sagaracha...@tutanota.com: > >> 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 >> u...@mydomain.com or at u...@mail.mydomain.com ? >> >> Thanking you >> Sagar Acharya >> https://humaaraartha.in >> >> >> >> 31 Aug 2023, 01:06 by stu...@gathman.org: >> >>> >>> >>> 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. >>>
Re: Setting personal mailserver
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 tphil...@potion-studios.com: 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 f...@bar.com f...@bar2.com f...@bar3.com That's it, no other mails. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 12:42 by sagaracha...@tutanota.com: 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 u...@mydomain.com or at u...@mail.mydomain.com ? Thanking you Sagar Acharya https://humaaraartha.in 31 Aug 2023, 01:06 by stu...@gathman.org: 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.
Re: Setting personal mailserver
The error is clear: whatever you connect to requires authentification, before submitting the mail. So, provide that info. Authentication is not TLS encryption, so no idea what you mean by you added TLS certs and that STARTTLS should make it work: it's simply not authentication. On Fri, Sep 01, 2023 at 09:42:17PM +0200, Sagar Acharya wrote: To enable being able to send mails from my server, I added tls certs. Now when I send from this email id to u...@mydomain.com , I get the error below. 530 5.5.1 Invalid command: Must issue an AUTH command first (in reply to MAIL FROM command) Since STARTTLS is working on 25, I think things should go smoothly but it isn't so. Please help. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 20:52 by sagaracha...@tutanota.com: 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 tphil...@potion-studios.com: 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 f...@bar.com f...@bar2.com f...@bar3.com That's it, no other mails. Thanking you Sagar Acharya https://humaaraartha.in 1 Sept 2023, 12:42 by sagaracha...@tutanota.com: 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 u...@mydomain.com or at u...@mail.mydomain.com ? Thanking you Sagar Acharya https://humaaraartha.in 31 Aug 2023, 01:06 by stu...@gathman.org: 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.