guchar proto;
guint16 port;
+ /*
+ * Important notice: Postfix do NOT use this command to pass
+ * client's info (e.g. hostname is not really here)
+ * Sendmail will pass it here
+ */
if (session->hostname == NULL) {
session->hostname = rspamd_fstring_new_init (pos, zero - pos);
}
rspamd_http_message_add_header_len (msg, USER_HEADER,
found->begin, found->len);
}
+
+ if (!session->hostname || session->hostname->len == 0) {
+ IF_MACRO("{client_name}") {
+ rspamd_http_message_add_header_len (msg, HOSTNAME_HEADER,
+ found->begin, found->len);
+ }
+ }
}
struct rspamd_http_message *