hi. i need some help here please.
i have been trying to set up sendmail for a while but it just won't work for me. i'm just trying to get local mail going for now. i have set up a very basic lan in vmware with just 2 linux systems.. lets call them firstsys and secondsys. what do i need to set up on each system for very basic sendmail to work (sending mail to/from each system)? thanks in advance!
this is the error i get when emailing to firstsys from secondsys..
[root@unttainable.info ~]# mail g@firstsys
----- The following addresses had permanent fatal errors -----
<q@unattainable.info>
(reason: 550 5.7.1 <q@unattainable.info>... Relaying denied. IP name lookup
failed [10.0.22.9])
this is what i've tried but didn't work (both system pingable from one another):
firstsys..
users: g, root
service: sendmail, dovecot, dhcpd
security: all off
hostname: firstsys.unattainable.info
/etc/hosts
firstsys.unattainable.info firstsys localhost.localdomain localhost
10.0.22.9 secondsys
secondsys..
users: root
service: sendmail, dovecot
security: all off
hostname: secondsys.unattainable.info
/etc/hosts
secondsys.unattainable.info secondsys localhost.localdomain localhost
10.0.22.9 firstsys
---------- Post added at 05:10 PM GMT ---------- Previous post was at 04:32 PM GMT ----------
btw, in firstsys, all i configured in /etc/mail/sendmail.mc is add the line..
"DAEMON_OPTIONS(`Port=smtp,Addr=10.0.22.1, Name=MTA')dnl"
then i ran a script that does the following..
cd /etc/mail
make
newaliases
/etc/init.d/sendmail restart
firstsys seems to be able to recieve the mail, but why is it trying to relay it?
---------- Post added at 06:05 PM GMT ---------- Previous post was at 05:10 PM GMT ----------
ok, i figured it out. it wasn't able to find the recipient in my DNS zone file because i configured MX incorrectly. thanks all