Hello, I've tried to migrate some 90 servers from Sendmail to Postfix, trying to keep the behavior as similar as possible. They were all simple null clients, sending mail via relayhost only. After some time I've noticed that some servers are sending their daily logwatch outputs with
From: "r...@n2rhps88.localdomain" <r...@n2rhps88.localdomain> , while others have From: Root n2rhps23 PGRLF <u...@o2bs.com> . I prefer the second variant; the problem is that configurations are the same... The "comment" field in this record comes from /etc/passwd. [r...@n2rhps88 ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 disable_dns_lookups = yes html_directory = no inet_interfaces = localhost mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost mydomain = localdomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relayhost = [mailrelay.cms1] sample_directory = /usr/share/doc/postfix-2.3.3/samples sender_canonical_classes = envelope_sender sender_canonical_maps = pcre:/etc/postfix/sender sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 [r...@n2rhps88 ~]# uname -a Linux n2rhps88 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux [r...@n2rhps88 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.4 (Tikanga) [r...@n2rhps88 ~]# rpm -q postfix postfix-2.3.3-2.1.el5_2 [r...@n2rhps23 ~]# uname -a Linux n2rhps23 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux [r...@n2rhps23 ~]# cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 6) [r...@n2rhps23 ~]# rpm -q postfix postfix-2.2.10-1.1.el4 [r...@n2rhps88 ~]# cat /etc/postfix/sender /\@/ u...@o2bs.com // MAILER-DAEMON -- *********************************************************************** Pavel Urban (pavel.urban (at) o2bs.com) O2 BS system disaster Telefonica O2 Business Solutions, spol. s r.o. - www.o2bs.com *********************************************************************** Vegetables should not operate electronic equipment. Computer Stupidities, http://rinkworks.com/stupid/ ***********************************************************************