ereemst
Verified User
- Joined
- Feb 5, 2018
- Messages
- 14
Okay, I have a quick question because of the new changes from Google, Microsoft, etc. and the requirements for the content of the dmarc dns setting!
I am looking for a short SSH command or script that I can run on my Directadmin web servers with Apache and check all accounts on this web server to search and change the existing dmarc setting in the DNS,
for example dmarc=none, or if necessary I want to change the email address stated in all accounts of all my customers.
The reason is that we used a Gmail account for this and this seems to be no longer allowed.
Why we receive this promotion in the Netherlands from a number of well-known providers such as Ziggo or Quicknet and also KPN email bounced from our users who try to send them to these package providers as an example:
*********************
Mail delivery failed: returning message to sender
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
[email protected]
all hosts for 'quicknet.nl' have been failing for a long time (and retry time not reached)
****************************
Or alternatively a script Grep, whatever to simply remove the TXT record from dmarc's DNS,
Can anybody help me, or He has positive thoughts about this and shares my opinion that this is a problem that needs to be solved
Funny note i tried Bing Pilot asked the question and this came out, Actually does something but does not work (TESTED)
in SSH - ROOT
Result
-bash: /usr/local/directadmin/data/users/xxx/domains/*/dns_txt.conf: No such file or directory
-bash: /usr/local/directadmin/data/users/YYY/domains/*/dns_txt.conf: No such file or directory
I am looking for a short SSH command or script that I can run on my Directadmin web servers with Apache and check all accounts on this web server to search and change the existing dmarc setting in the DNS,
for example dmarc=none, or if necessary I want to change the email address stated in all accounts of all my customers.
The reason is that we used a Gmail account for this and this seems to be no longer allowed.
Why we receive this promotion in the Netherlands from a number of well-known providers such as Ziggo or Quicknet and also KPN email bounced from our users who try to send them to these package providers as an example:
*********************
Mail delivery failed: returning message to sender
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
[email protected]
all hosts for 'quicknet.nl' have been failing for a long time (and retry time not reached)
****************************
Or alternatively a script Grep, whatever to simply remove the TXT record from dmarc's DNS,
Can anybody help me, or He has positive thoughts about this and shares my opinion that this is a problem that needs to be solved
Funny note i tried Bing Pilot asked the question and this came out, Actually does something but does not work (TESTED)
in SSH - ROOT
for user in $(ls /usr/local/directadmin/data/users); do echo "_dmarc=\"v=DMARC1; p=none; sp=none; rua=mailto:spam-reports@$user\"" >> /usr/local/directadmin/data/users/$user/domains/*/dns_txt.conf; done && service named restart
Result
-bash: /usr/local/directadmin/data/users/xxx/domains/*/dns_txt.conf: No such file or directory
-bash: /usr/local/directadmin/data/users/YYY/domains/*/dns_txt.conf: No such file or directory