I checked all network settings. They are perfect. Here is my conf below 
exactly. There's some issue with it.

========== smtpd.conf ==========
table aliases file:/etc/smtpd/aliases
table whitelist file:/etc/smtpd/whitelist

pki humaaraartha.in cert "path_to_fullchain"
pki humaaraartha.in key "path_to_privkey"

listen on 0.0.0.0 tls pki humaaraartha.in
listen on 0.0.0.0 smtps pki humaaraartha.in

action "local" maildir alias <aliases>
action "relay" relay host "smtps://humaaraartha.in" mail-from "@humaaraartha.in"

match from mail-from <whitelist> for domain "humaaraartha.in" action "local"
match for any action "relay"
match for local action local
#match from any reject
=================

====== whitelist =====
[email protected]
[email protected]===================

Network error on destination MXs.
I cannot send mails. I can receive them.
Thanking you
Sagar Acharya
https://humaaraartha.in



3 Sept 2023, 22:26 by [email protected]:

> Hello Sagar,
>
>
> is the port reachable from your system? Check with netcat:
>
>
> nc -v mydomain.com 465
>
>
>
> Is the certificate chain complete and are you trusting the root CA?
> Verify with openssl:
>
>
> openssl s_client -connect  mydomain.com:465
>
>
>
> (I assume "mydomain.com" is the anonymized form of your actual domain)
>
>
>
>
> Also, as has been requested before: If people here offer their help you
> should at least be posting your smtpd.conf file
>
>
>
> Kind regards,
>
>
> Alex
>
>
>
>
> On 03.09.23 16:00, Sagar Acharya wrote:
>
>> I have set spf records, TXT as follows:
>>
>> "v=spf1 ipv4:{myipv4address} -all"
>>
>> You can dig them at humaaraartha.in
>>
>> Everything looks spick and span and the error of
>>
>> smtp-out: No valid route for 
>> [connector:[]->[relay:mydomain.com,port=465,smtps,mx],0x0]
>>
>> still remains.
>> Thanking you
>> Sagar Acharya
>> https://humaaraartha.in
>>
>>
>>
>> 3 Sept 2023, 16:45 by [email protected]:
>>
>>> Hello,
>>>
>>> Port 465 with implicit TLS for Submissions isn't outdated since RFC 8314, 
>>> it's even the recommended way to use Submissions as STARTTLS (mostly used 
>>> on tcp/587) is a security nightmare.
>>>
>>> More details in this PR i made two months ago :
>>> https://github.com/stalwartlabs/website/pull/1#issue-1812289068
>>>
>>> Jarod G.
>>>
>>> Le 03/09/2023 à 00:26, Reio Remma a écrit :
>>>
>>>> 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 [email protected]:
>>>>>
>>>>>> 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 [email protected] to [email protected] 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 [email protected]:
>>>>>>>
>>>>>>>> Hello, pls show your config file.
>>>>>>>>
>>>>>>>> Mit freundlichen Grüßen, V.Bubnov
>>>>>>>>
>>>>>>>>> 01.09.2023, в 21:43, Sagar Acharya <[email protected]> 
>>>>>>>>> написал(а):
>>>>>>>>>
>>>>>>>>> To enable being able to send mails from my server, I added tls certs.
>>>>>>>>>
>>>>>>>>> Now when I send from this email id to [email protected] , 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 [email protected]:
>>>>>>>>>
>>>>>>>>>> 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.
>>>>>>>>>>>>>>

Reply via email to