Add rcpt-domain key to rcpt.relay rule evaluation

This commit is contained in:
mdecimus
2023-08-30 16:10:40 +02:00
parent 5b88a03e92
commit 4238c1409e
13 changed files with 198 additions and 34 deletions

View File

@@ -197,7 +197,7 @@ pub fn literal_string(buf: &mut Vec<u8>, text: &str) {
pub fn quoted_timestamp(buf: &mut Vec<u8>, timestamp: i64) {
buf.push(b'"');
buf.extend_from_slice(
DateTime::<Utc>::from_utc(
DateTime::<Utc>::from_naive_utc_and_offset(
NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap_or_default(),
Utc,
)