Hi all.
sorry for my poor english.

following may be illusion .
but i do experiment .

for example 
    Gmail server 3.4.5.6<------4.5.6.7PC1
             |
             |
    aoi server 2.3.4.5 <------1.2.3.4PC2

Gmail server reject mail from PC2 because Gmail server thinks that it is relayed by aoi.
and
aoi server reject mail from PC1 because aoi server thinks that it is relayed by Gmail.


so , accordingly i rewrite /etc/mail/smtpd.conf
listen on lo0
listen on em0 port 587
table aliases db:/etc/mail/aliases.db
accept from any for domain "aoi.jp" alias <aliases> deliver to maildir
accept from any         for domain "aoi.jp" deliver to maildir
accept for local alias <aliases> deliver to maildir accept for local deliver to maildir
accept from local for any relay <------
reject from any for any         <------

and then
ssh -l user aoi.jp
and directory
echo '---mail to Gmail from aoi ------------------'| mail x...@gmail.com

then surely Gmail has this mail bcaue it is not relayed but directly .


this is the reason
'send mail to Gmail' is easyier than 'recieve from Gmail '

normaly anybody cannot login Gmail server by ssh .

pehaps relay setting of smtpd.conf is important .
by now i have no good idea to deal it .
------
regards

Reply via email to