--- fetchmail.c 2003-10-15 14:22:31.000000000 -0500 +++ ahfetchmail.c 2005-08-26 11:36:16.167280314 -0500 @@ -1006,8 +1006,11 @@ if (ctl != querylist && strcmp(ctl->server.pollname, "defaults") == 0) exit(PS_SYNTAX); - /* use localhost if we never fetch the FQDN of this host */ - fetchmailhost = "localhost"; + /* use localhost if we never fetch the FQDN of this host + fetchmailhost = "localhost"; */ + + /* AH Patch to use FQDN instead of localhost */ + fetchmailhost = host_fqdn(); /* here's where we override globals */ if (cmd_run.logfile)