메일 서비스(사이트 대표·독립)·메일함·사용량·보안·전환·보존과 AriMail 도입 수정(KST 월 경계, 발신 키 오류, 도메인별 보장량, 100% 제한, 발송 큐·속도, 운영 상태, SSO) (§15~§18·§0.4)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
zzabisagent-lab
2026-10-26 11:47:45 +00:00
co-authored by Claude Fable 5.1
parent a014e3cd05
commit a1cde81332
26 changed files with 1610 additions and 37 deletions
@@ -97,6 +97,9 @@ exports.deliver = function (next, connection) {
.then(({ status, data }) => {
if (status >= 200 && status < 300 && data && data.ok) {
if (data.skipped === 'quota_exceeded' || data.skipped === 'storage_full') { connection.lognotice(this, `mailbox full: ${rcpt.join(',')}`); return next(DENYSOFT, 'Mailbox full, try again later'); }
// [Ariweb Suite 변경] 월간 통수 100%·도메인 이전 중(동결)도 임시 거부(보낸 서버가 재시도). 기존 메일 읽기·삭제는 그대로입니다.
if (data.skipped === 'monthly_limit') { connection.lognotice(this, `monthly limit: ${rcpt.join(',')}`); return next(DENYSOFT, 'Monthly message limit reached, try again later'); }
if (data.skipped === 'domain_not_active') { connection.lognotice(this, `domain not active: ${rcpt.join(',')}`); return next(DENYSOFT, 'Mail domain temporarily unavailable (migration), try again later'); }
connection.loginfo(this, `delivered to gateway${data.imported ? ' id=' + data.id : ' (' + (data.skipped || 'skipped') + ')'}`);
return next(OK, 'Message accepted for delivery');
}