mirror of
https://github.com/chatmail/relay.git
synced 2026-05-12 09:04:36 +00:00
cmdeploy: deploy with IP address only
This commit is contained in:
@@ -8,7 +8,7 @@ First, choose a random domain name (it doesn't need working DNS)
|
||||
and create a chatmail.ini config file:
|
||||
|
||||
```
|
||||
cmdeploy init whatever.you.want
|
||||
cmdeploy init [77.42.80.106]
|
||||
```
|
||||
|
||||
Then, in `cmdeploy/src/cmdeploy/postfix/transport`,
|
||||
@@ -22,4 +22,4 @@ cmdeploy run --skip-dns-check --ssh-host 77.42.80.106
|
||||
|
||||
Finally, you can login with a `dclogin://` code like this, with the correct "domain name" and IP address:
|
||||
|
||||
`dclogin:s0m3r4nd0@whatever.you.want?p=w7i8da7h8uads92ycc2rufyl&v=1&ih=77.42.80.106&sh=77.42.80.106&sp=443&ip=443&ic=3&sc=3`
|
||||
`dclogin:s0mer4nd0@[77.42.80.106]?p=w7i8da7h8uads92ycc2rufyl&v=1&ih=77.42.80.106&sh=77.42.80.106&sp=443&ip=443&ic=3&sc=3`
|
||||
|
||||
@@ -89,6 +89,7 @@ def run_cmd(args, out):
|
||||
"""Deploy chatmail services on the remote server."""
|
||||
|
||||
ssh_host = args.ssh_host if args.ssh_host else args.config.mail_domain
|
||||
ssh_host = ssh_host.strip("[").strip("]")
|
||||
sshexec = get_sshexec(ssh_host)
|
||||
require_iroh = args.config.enable_iroh_relay
|
||||
if not args.dns_check_disabled:
|
||||
|
||||
@@ -7,6 +7,7 @@ listen = *
|
||||
protocols = imap lmtp
|
||||
|
||||
auth_mechanisms = plain
|
||||
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@[]
|
||||
|
||||
{% if debug == true %}
|
||||
auth_verbose = yes
|
||||
|
||||
@@ -54,7 +54,6 @@ smtpd_tls_exclude_ciphers = aNULL, RC4, MD5, DES
|
||||
tls_preempt_cipherlist = yes
|
||||
|
||||
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
||||
myhostname = {{ config.mail_domain }}
|
||||
alias_maps = hash:/etc/aliases
|
||||
alias_database = hash:/etc/aliases
|
||||
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
no-dns.chatmail.at smtp:[77.42.80.106]
|
||||
no-dns2.testrun.org smtp:[77.42.86.249]
|
||||
|
||||
nine.testrun.org discard:
|
||||
* :
|
||||
|
||||
Reference in New Issue
Block a user