A good site to test your (mail)-ssl is
https://www.checktls.com/index.html
Search found 199 matches
- Sat Apr 17, 2021 4:18 pm
- Forum: Postfix
- Topic: Signed mail certificate
- Replies: 2
- Views: 10461
- Sat Apr 17, 2021 12:14 pm
- Forum: Postfix
- Topic: Signed mail certificate
- Replies: 2
- Views: 10461
Re: Signed mail certificate
you first need to generate csr-file (and key). openssl req -new -nodes -keyout mail.server.com.key -out mail.server.com.csr Make sure you use the same host-name as used in your postfix config file (of dovecot or other mail server) in this example mail.server.com , not just the domain. Then send the ...
- Sun Mar 14, 2021 8:53 pm
- Forum: Servers
- Topic: postsuper: fatal: scan_dir_push: open directory defer: Permission denied
- Replies: 3
- Views: 17979
Re: postsuper: fatal: scan_dir_push: open directory defer: Permission denied
If it can't write the mails, it can't process the mail to send them.
an extreme solution is to delete the dir
and do a reinstall
it will recreate the dir with the correct file-settings.
an extreme solution is to delete the dir
Code: Select all
rm -fr /var/spool/postfix
Code: Select all
apt-get reinstall postfix
- Sun Mar 14, 2021 8:25 pm
- Forum: Servers
- Topic: postsuper: fatal: scan_dir_push: open directory defer: Permission denied
- Replies: 3
- Views: 17979
Re: postsuper: fatal: scan_dir_push: open directory defer: Permission denied
It looks like postfix does not have access to one or more directories.
Somehow the rights must have been changed.
You can try:
or
Somehow the rights must have been changed.
You can try:
Code: Select all
chown -R postfix /var/spool/postfix
Code: Select all
postfix set-permissions
- Fri Feb 12, 2021 7:10 pm
- Forum: General
- Topic: linux repeat command x times
- Replies: 1
- Views: 6617
Re: linux repeat command x times
With the up arrow you get the last commands you typed, and press enter to execute it. If you want to run the same command several times, you can use for-loop ( in bash) for n in {1..3}; do <COMMAND>; done repeats 3 times Another option is watch If you want to repeat a command every x seconds, ideal ...
- Sun Feb 07, 2021 7:48 am
- Forum: SQL
- Topic: mysql update add to text
- Replies: 1
- Views: 7564
Re: mysql update add to text
you can use concat to add to already existing string (varchar,text,...)
It doesn't work if the value is NULL,
It works with an empty string ('').
So you should replace all NULL values with empty string before.
Code: Select all
UPDATE table_name SET text_field=CONCAT(text_field,'string to add') WHERE id='1';
It works with an empty string ('').
So you should replace all NULL values with empty string before.
- Wed Sep 23, 2020 4:01 pm
- Forum: Shell
- Topic: switch in bash
- Replies: 1
- Views: 6858
Re: switch in bash
Yes, it look lik this:
in this case $VALUE can be 1 or 2,
anything else will result in default.
I think it is a string compare, so you can use anything.
Code: Select all
#Set the IP
case $VALUE in
1)
IP=192.168.1.160
NAME='a';
;;
2)
IP=192.168.1.161
NAME='B';
;;
*)
IP=192.168.1.1
NAME='Default';
;;
esac
anything else will result in default.
I think it is a string compare, so you can use anything.
- Sat Sep 19, 2020 2:46 pm
- Forum: Shell
- Topic: Bash last char of a string
- Replies: 2
- Views: 34290
Re: Bash last char of a string
you can also use:
Just remember that the last character can sometimes be a whitespace ( space, newline ...)
Code: Select all
echo ${STRING: -1}
- Tue Sep 08, 2020 1:43 pm
- Forum: SQL
- Topic: Join 1 table on 2 different tables
- Replies: 1
- Views: 6759
Re: Join 1 table on 2 different tables
You can work with a sub-query an UNION:
Code: Select all
SELECT table1.id,union_table.name FROM table1 LEFT JOIN
(SELECT id,name FROM table2 UNION SELECT id,title AS name FROM table3)
AS union_table ON table1.other_id=union_table.id;
- Thu Apr 23, 2020 6:59 am
- Forum: SQL
- Topic: Solved: Incorrect date value: '0000-00-00' for column
- Replies: 2
- Views: 8249
Re: Incorrect date value: '0000-00-00' for column
The error is because MYSQL is in strict mode (default) You can Check MYSQL mode SELECT @@GLOBAL.sql_mode global, @@SESSION.sql_mode session You change it with the following query; SET sql_mode = ''; or SET GLOBAL sql_mode = ''; Using the keyword GLOBAL requires super privileges and it affects the op...