mail server question ($25 for solution) (SOLVED)
I've set up my Linode using Ubuntu 10.04 LTS and the WordPress StackScript at revision 146.
My Linode is at li589-228.members.linode.com. The IP is 192.155.92.228
For some reason, I don't seem to be able to get the mail server to run. Whenever I send a test email from the outside to a virtual alias I set up, it bounces, stating "192.155.92.228]:25: Connection refused]. Testing the mail server using the tool at
Testing from within the box, however, indicates port 25 is working:
root@li589-228:~# telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.localdomain.
Escape character is '^]'.
220 li589-228.members.linode.com ESMTP Postfix (Ubuntu)
Any pointers as to what I'm doing wrong?
Would it be OK to offer the first one to help me solve this $25 via Paypal? If this offer violates some rule, please ignore it and I apologize.
Thank you.
Marc.
--
Marc Fest
14 Replies
I suspect if you look at whatever your using for your mail server, that in its config file it will only be binding to localhost.
That, or you have a firewall in the way
thanks for your reply. I'm trying to use mail.ilovehamburg.com as mail server. Where is its config file and how do I change it so that the mail server will bind correctly?
Would it help if I shared the contents of the config file here?
Thanks again.
Marc
The config file for postfix is /etc/postfix.main.cf.
However if you can post the output of "postconf -n" and "iptables -nvL" that would be good
postconf -n prints non default postfix settings
and iptables -nvL prints the firewall table.
root@li589-228:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
appenddotmydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = loopback-only
mailboxsizelimit = 0
mydestination = localhost, li589-228.members.linode.com, localhost.members.linode.com, localhost
myhostname = li589-228.members.linode.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
smtptlssessioncachedatabase = btree:${datadirectory}/smtpscache
smtpdbanner = $myhostname ESMTP $mailname (Ubuntu)
smtpdtlscert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpdtlskey_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpdtlssessioncachedatabase = btree:${datadirectory}/smtpdscache
smtpdusetls = yes
virtualaliasdomains = ilovehamburg.com
virtualaliasmaps = hash:/etc/postfix/virtual
root@li589-228:~#
root@li589-228:~# iptables -nvL
Chain INPUT (policy ACCEPT 10627 packets, 958K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 11691 packets, 1531K bytes)
pkts bytes target prot opt in out source destination
comment out/remove this line
> inet_interfaces = loopback-only
Thats binding to the internal interface only
/etc/init.d/postfix restart
Please send me your email address via
Thank you again!
Best,
Marc.
If you don't accept it I'll give the $25 to the Humane Society (I'm a dog lover; my Belgian Shepherd even has his own Web site:
And thank you so much again.
And Internat, $25 just went to the Humane Society, helping dogs (
Thank you again!