Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
8fcdf43f
Commit
8fcdf43f
authored
Jun 27, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve mail scripts
parent
2fcf99c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
archive_account_mails.sh
mail/archive_account_mails.sh
+1
-1
check_web_letters.sh
mail/check_web_letters.sh
+2
-0
No files found.
mail/archive_account_mails.sh
View file @
8fcdf43f
...
...
@@ -22,7 +22,7 @@ mkdir -p $BACKUPDIR || exit
ARCNAME
=
"
$BACKUPDIR
/
$(
date
-R
)
.tar.gz"
erc create
"
$ARCNAME
"
$SPAMDIR
||
exit
# remove mails
echo
"removing mails from
$SPAMDIR
..."
find
"
$SPAMDIR
"
-maxdepth
1
-type
f
-name
"*."
-delete
rm
-f
$SPAMDIR
/cyrus.
*
...
...
mail/check_web_letters.sh
View file @
8fcdf43f
...
...
@@ -7,6 +7,8 @@
# Sep 14 04:11:10 server postfix/smtpd[22127]: NOQUEUE: reject: RCPT from mail.mtml.ru[95.131.27.100]: 450 4.1.7 <noreply@mirtesen.ru>: Sender address rejected: unverified address: connect to mirtesen.ru[95.131.27.20]:25: Connection refused; from=<noreply@mirtesen.ru> to=<lav@etersoft.ru> proto=ESMTP helo=<mailgate1.mtml.ru>
# Sep 14 22:46:17 server postfix/smtpd[20894]: NOQUEUE: reject: RCPT from mail.us.archive.org[207.241.224.6]: 450 4.1.7 <noreply@openlibrary.org>: Sender address rejected: unverified address: host mail.archive.org[207.241.224.6] said: 550 5.1.1 <noreply@openlibrary.org>: Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command); from=<noreply@openlibrary.org> to=<lav@etersoft.ru> proto=ESMTP helo=<mail.archive.org>
epm q python-module-httplib2
||
exit
if
[
"
$1
"
=
"-f"
]
;
then
skip
cat
/var/log/mail/all |
grep
"reject: RCPT"
| egrep
"(Sender address rejected: unverified address|Helo command rejected: Host not found)"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment