Problem with qmail and a new host..

mrCide

Diamond Member
Nov 27, 1999
6,187
0
76
I have a Linux box I check/send email from via pop/smtp and all is well, though, it's secure. I got a new IP/host and had to make a couple changes.. hosts.allow.. ftp something (forgot the name).. and I think I have to add something to the qmail config to allow my IP to send out.. I was told by a friend that I need to "add the new ip as an acceptible relaydomain." However, I do not know where to do this nor does he, anybody ? :)

Thanks
 

jartit

Junior Member
Mar 9, 2001
9
0
0
To allow qmail to recieve mail for other ips/dnses, add the hostname to the $qmail/control/rcpthosts file, as well as the $qmail/control/locals file.

As for sending mail, that should fix it too, and if it doesn't, I'm out of ideas :)
 

mrCide

Diamond Member
Nov 27, 1999
6,187
0
76
jartit,

Thanks for the suggestion but that wasn't it. I got it though, if you're curious..

Note that a default configuration does not allow for ANY relaying, even from localhost. To allow relaying from localhost and your local network, you would have to use something like this: 127.0.0.1:allow,RELAYCLIENT="" 192.168.1.:allow,RELAYCLIENT="" :allow (/etc/tcp.smtp)

After you've created your rules, you need to activate them. tcpserver works by reading a cdb(database) file. You use the tcprules program to build the database fril from your /etc/tcp.smtp file. This is accomplished by the following command: tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp


Basically I just added the entry, built the database, killed and restarted qmail and it worked.. the rcpthosts is for local domains.. (like virtual domains/hosts)..