Postfix problems ! - can send but not receive emails.
Hi All,
I am having a terrible time diagnosing my postfix server. Firstly here is my situation; I am running a Vmware image of Ubuntu configured with postfix, mailscanner, fetchmain etc .. I have a local network of 5 pc's with 5 usernames configured with local accounts. each local account is user@myhostname now i also have a dyndns account with myhostname pointing to my postfix server called myhostname. so myhostname can be seen on the internet. I have courier pop3 setup for mail retreval from a client pc. here is my main.cf file; Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version here is the error i get from /var/log/mail.log Code:
Apr 29 06:55:22 tallwood MailScanner[6638]: Virus and Content Scanning: Starting I can send emails out with no issues .. but i cannot receive any ? can anyone help me ! Cheers !! |
I hate these posts with out real DNS info..
Do you just have an A record setup ? or did you setup both the A record and the MX record in DNS ? myhostname is not a fqdn The A record should be something like mail.mydomainname.com pointing to the Internet IP address of your mail server. the MX record should reference the A record as the destination for mail delivery. each account name should be user@mydomainname.com Did your HOW-TO include instructions for manually sending test emails through the system by telneting to port 25 ? a good how-to should include this test info along the way.. |
sorry dude .. myhostname is a FQDN tallwood.homeip.net .. i just used myhostname as a shortcut.
now what do u mean by A record setup ? |
Your A record is in Blue..
Quote:
an MX record is required in order to receive email Quote:
MX Mail Exchanger, code 15. Each MX record specifies a domain name (which must have an A record associated with it) and a priority; a list of mail exchangers is then ordered by priority when delivering mail. MX records provide one level of indirection in mapping the domain part of an email address to a list of host names which are meant to receive mail for that domain name. Critical part of the infrastructure used to support SMTP email. Defined in RFC 1035. |
excellent reply farslayer .. i will investigate accordingly.
thanks ! |
ok then .. if i add a valid mail rely to my dyndns account under the Mail Exchanger section .. will this do the trick ?
|
a MX record will tell other mail servers that are sending email to oztexs@tallwood.homeip.net that the mail server that handles mail for that user/domain resides at the A record address associated with that MX record.
Without the MX record anyone trying to send mail to your domain will not be able to because they will not find a server configured to receive it.. |
ok so my smtp server should be the mx .. mail.tallwood.homeip.net ?
|
correct.
and there should also be an A record for that server.. the MX record will point to the server name mail.tallwood.homeip.net the A record will contain the IP address for mail.tallwood.homeip.net an MX record should never point directly at an IP address. also make sure the hostname for the actual machine matches the record you are putting into DNS. Here is a guide you can use to ensure the computer hostname is set properly. http://www.cpqlinux.com/hostname.html |
thanks mate !!
all good. |
All times are GMT -5. The time now is 06:22 AM. |