Re: Setting From address for cronjob mails (because Gmail rejects)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am 20.01.2012 09:47, schrieb Alexander Dalloz:
> Am 20.01.2012 09:38, schrieb Alexander Farber:

>> # 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
>> data_directory = /var/lib/postfix
>> debug_peer_level = 2
>> html_directory = no
>> inet_interfaces = localhost
>> inet_protocols = all
>> mail_owner = postfix
>> mailq_path = /usr/bin/mailq.postfix
>> manpage_directory = /usr/share/man
>> mydestination = $myhostname, localhost.$mydomain, localhost
>> newaliases_path = /usr/bin/newaliases.postfix
>> queue_directory = /var/spool/postfix
>> readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
>> sample_directory = /usr/share/doc/postfix-2.6.6/samples
>> sendmail_path = /usr/sbin/sendmail.postfix
>> setgid_group = postdrop
>> unknown_local_recipient_reject_code = 550
>>
>> On both machines I have appended
>>
>>      afarber:     Alexander.Farber@xxxxxxxxx
>>      root:           Alexander.Farber@xxxxxxxxx
>>
>> to the /etc/aliases and run "newaliases".


> Hi Alex,
> 
> the log shows a broken setup. The system is both using Sendmail *and*
> Postfix. Most probably the fix is to run alternatives --config mta and
> to select Postfix, to make sure all the symlinks are set properly. You
> may even yum remove sendmail afterwards.
> 
> Relaying through Google, make sure that $myhostname is valid. Actually
> it translates to your invalid hostname localhost with domain part
> localdomain. Fix that!
> 
> Regards
> 
> Alexander

To make an add and correction. You do not relay through gmail, but you
address your own gmail.com address. So you do not SMTP AUTH but you
appear as a normal mail sender to gmail. And all their anti-spam
measures act.

So make sure *verything* is setup properly acting as an MTA in the
public internet. Means, correct, resolvable DNS (forward and reverse,
matching). Valid addresses (root@localhost.localdomain is NOT).

Advise: Use the MTA by your ISP as your relay host.

Alexander


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux