Changeset View
Changeset View
Standalone View
Standalone View
contrib/dma/net.c
| Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | static void parse_auth_line(char* line, struct smtp_auth_mechanisms* auth) { | ||||
| } | } | ||||
| } | } | ||||
| int perform_server_greeting(int fd, struct smtp_features* features) { | int perform_server_greeting(int fd, struct smtp_features* features) { | ||||
| /* | /* | ||||
| Send EHLO | Send EHLO | ||||
| XXX allow HELO fallback | XXX allow HELO fallback | ||||
| */ | */ | ||||
| send_remote_command(fd, "EHLO %s", hostname()); | send_remote_command(fd, "%s %s", config.features & LMTP ? "LHLO" : "EHLO", hostname()); | ||||
| char buffer[EHLO_RESPONSE_SIZE]; | char buffer[EHLO_RESPONSE_SIZE]; | ||||
| memset(buffer, 0, sizeof(buffer)); | memset(buffer, 0, sizeof(buffer)); | ||||
| int res = read_remote(fd, sizeof(buffer) - 1, buffer); | int res = read_remote(fd, sizeof(buffer) - 1, buffer); | ||||
| // Got an unexpected response | // Got an unexpected response | ||||
| if (res != 2) | if (res != 2) | ||||
| ▲ Show 20 Lines • Show All 289 Lines • Show Last 20 Lines | |||||