So i already set the mail server with postfix, dovecot , and squirrelmail and it works only for localhost. When i send it to my gmail it says it sent on the squirrelmail but when i opened on the gmail, the message didn’t appear! Same also for gmail, when i send from gmail to my mail server it says sent but when i opened the squirrelmail it didn’t appear! What should i do to set the mail server to send e-mail to gmail, yahoo, or etc and vice-versa? I’m using opensuse 13.2.
Sending e-mail is usually trivial assuming your system has a connection to
the Internet which allows SMTP traffic out. Some ISPs prevent this by
policy in order to prevent compromised users’ systems from becoming a
source of worldwide spam, so chat with them. Otherwise, all that happens
to send e-mail out to the world is a connection to the target user’s mail
system, which is found by looking up the MX record (via DNS) for the
target domain, and then opening a socket to TCP 25 on that target system
to send the mail.
When mail is sent to you, the reverse happens. The sender (for example,
gmail, so Google) looks up your domain’s MX record (do you have a a public
DNS record? does it have an MX record?) and then makes a connection to
the IP address listed with that MX record on TCP 25. This is less-common
and not something that can magically work unless you have a DNS domain
with an MX record (or one that forwards to your system somehow), a connect
to the Internet which allows incoming TCP 25 connections (some ISPs block
these as well when preventing “servers” on their network, vs. end-users
with workstations/tablets/etc.), and then of course your mail server must
be configured to accept traffic, understand it is the mail server for your
particular domain, and have an account ready to receive the incoming stuff.
With that all understood, what steps have you taken so far to determine
any of that can work?
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…