You are not logged in.
I am playing around with s-nail and mailx to learn it for use in my server.
So I set up a mail address at a freemail provider and with some googling I created a .mailrc with following content:
account test {
set smtp-use-starttls
set smtp-auth=login
set smtp=smtp://smtp.provider.tld:587
set from="admin@provider.tld(admin)"
set smtp-auth-user=admin@provider.tld
set smtp-auth-password=password
set ssl-verify=ignore
}Running:
echo -e "test" | mailx -A test -s "test" receiver@test.tldworks and I get an email, but it throws several warnings like:
mail: Warning: variable superseded or obsoleted: smtp
mail: Warning: variable superseded or obsoleted: smtp-auth-user
mail: Warning: variable superseded or obsoleted: smtp-auth-password
mail: Warning: variable superseded or obsoleted: ssl-verify
mail: Obsoletion warning: please do not use *smtp*, instead assign a smtp:// URL to *mta*!
mail: Obsoletion warning: Use of old-style credentials, which will vanish in v15!
mail: Please read the manual section "On URL syntax and credential lookup"Reading the wiki I tried to change it towards
account test {
set from="admin <admin@provider.tld>"
set mta=smtp://admin:password@smtp.provider.tld:587 smtp-use-starttls
}But actually that doesn't work. I also translated my password using percent url encoding.
Can anyone help me getting mailx running without all this warnings?
Offline
I am confused. Have you replaced
account test {
set smtp-use-starttls
set smtp-auth=login
set smtp=smtp://smtp.provider.tld:587
set from="admin@provider.tld(admin)"
set smtp-auth-user=admin@provider.tld
set smtp-auth-password=password
set ssl-verify=ignore
}with
account test {
set from="admin <admin@provider.tld>"
set mta=smtp://admin:password@smtp.provider.tld:587 smtp-use-starttls
}?
That is, have you replaced a working, with warnings, 9 lines configuration file with a not working 4 lines configuration file? Does https://wiki.archlinux.org/index.php/S-nail the refered wiki page?
Last edited by regid (2020-02-16 04:12:56)
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.
Offline
Exactly, the 9 lines are working as expected. But the warnings say soon it will not work anymore. And I should use the mta style.
So I checked the arch wiki and the entry you posted and tried to transform it to the new style and live happily ever after.
Unfortunately that doesn't work. Neither the lines I posted here nor an attempt to use .netrc with untouched password.
Offline
My understanding of https://wiki.archlinux.org/index.php/S-nail seems to be different from yours. Quoting https://wiki.archlinux.org/index.php/S- … MTP_server
several options have to be set or adjusted. Add the following as appropriate to the configuration as above
I mean, in my view adjusted or add as appropriate is different from replace.
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.
Offline
Hmm, I mean on default there is no .mailrc existing. I created the 9 liner based on some internet tutorial. And indeed this is sufficient to work out of the box without any further configuration or whatsoever. But apparently this way is outdated and I get the message I shouldn't use the set smtp option anymore and instead use mta.
In the example configuration you find an example:
# It can be as easy as
# (Remember USER and PASS must be URL percent encoded)
set mta=smtp://USER:PASS@HOST \
smtp-use-starttlsAnd apparently it is not as easy as that. The wiki doesn't expect my custom mailrc to be present therefore it obviously doesn't mention anything about replace
.
If you have something like this configured, could you maybe share your configuration that results in a working without warning deployment of mailx?
Offline
So apparently since I tried the .netrc I oversaw it and I got still errors regarding my URL percent encoding. Although I tripple checked wikipedia how to encode all my special characters in my password.
I changed my password and now the following just works without any warning. Apparently it was also important to set the v15-compat.
account test {
set v15-compat
set from="admin <admin@provider.tld>"
set mta=smtp://user:password@smtp.provider.tld:587 smtp-use-starttls
}Offline