Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038767
en ru br
Репозитории ALT
S:8.16-alt1
5.1: 5.9.91-alt0.20091119.0.M51.7
4.1: 5.0.90-alt0.20090320.0.M41.3
4.0: 4.0-alt2.M40.2
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: mailfromd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: mailfromd-savsrv.c-not_cache_mf_timeout.diff
Скачать


"not_found" status is placed to the cache when the MX is not
responding. SMTP reply 5xx must not be returned at this case.
This behavior discovered in 7.99.92 (git 2012-03-21) but it
could be earlier.
This patch is attempt to disable caching mf_timeout case.
diff -Nur mailfromd-7.99.92-20130730.old/src/savsrv.c mailfromd-7.99.92-20130730/src/savsrv.c
--- mailfromd-7.99.92-20130730.old/src/savsrv.c	2012-02-09 09:57:59.000000000 +0400
+++ mailfromd-7.99.92-20130730/src/savsrv.c	2013-10-22 14:46:12.931146277 +0400
@@ -186,8 +186,10 @@
 				break;
 		}
 		rc = callout_standard(qp->io);
+		if ( rc != mf_timeout ) {
+			cache_insert(smtp_io_email(qp->io), rc);
+		}
 		STATUS_FIXUP(rc);
-		cache_insert(smtp_io_email(qp->io), rc);
 		break;
 
 	case cmode_mx_only:
@@ -212,9 +214,11 @@
 				break;
 		}			
 		rc = callout_strict(qp->io, qp->hostname);
+		if ( rc != mf_timeout ) {
+			cache_insert2(smtp_io_email(qp->io),
+				      qp->hostname, rc);
+		}
 		STATUS_FIXUP(rc);
-		cache_insert2(smtp_io_email(qp->io),
-			      qp->hostname, rc);
 		break;
 
 	case cmode_host_only:
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin