LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-29-2007, 06:40 AM   #1
OzTEXS
LQ Newbie
 
Registered: Dec 2006
Distribution: Redhat ES 4.0
Posts: 21

Rep: Reputation: 15
Question 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

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_size_limit = 0
recipient_delimiter = +


#MailScanner Content Scanner
header_checks = regexp:/etc/postfix/header_checks


home_mailbox = Maildir/
mailbox_command =
mydestination = myhostname
myorigin = $mydomain
mynetworks = 192.168.112.0/24, 127.0.0.0/23
myhostname = myhostname
relayhost = external.mail.server

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
Apr 29 06:55:22 tallwood MailScanner[6638]: Requeue: 0D802A178F.B78F0 to DDC5FA196B
Apr 29 06:55:22 tallwood postfix/qmgr[11930]: DDC5FA196B: from=<external email address>, size=3036, nrcpt=1 (queue active)
Apr 29 06:55:22 tallwood MailScanner[6638]: Uninfected: Delivered 1 messages
Apr 29 06:55:23 tallwood courierpop3login: Connection, ip=[::ffff:211.30.227.156]
Apr 29 06:55:24 tallwood courierpop3login: LOGIN, user=vmadmin, ip=[::ffff:211.30.227.156]
Apr 29 06:55:24 tallwood courierpop3login: LOGOUT, user=vmadmin, ip=[::ffff:211.30.227.156], top=0, retr=0, time=0
Apr 29 06:55:33 tallwood postfix/smtp[12067]: DDC5FA196B: to=<vmadmin@localhost>, relay=mail.optusnet.com.au[211.29.132.250], delay=40, status=bounced (host mail.optusnet.com.au[211.29.132.250] said: 553 5.3.0 <vmadmin@localhost>... No such user (in reply to RCPT TO command))
Apr 29 06:55:33 tallwood postfix/cleanup[12047]: 484D1A1970: message-id=<20070429105533.484D1A1970@myhostname>
Apr 29 06:55:33 tallwood postfix/qmgr[11930]: 484D1A1970: from=<>, size=4966, nrcpt=1 (queue active)
Apr 29 06:55:33 tallwood postfix/qmgr[11930]: DDC5FA196B: removed
Apr 29 06:55:38 tallwood postfix/smtp[12067]: 484D1A1970: to=<external email address>, relay=external mail server[211.29.132.250], delay=5, status=sent (250 2.0.0 l3TBRpvd009453 Message accepted for delivery)
Apr 29 06:55:38 tallwood postfix/qmgr[11930]: 484D1A1970: removed

I can send emails out with no issues .. but i cannot receive any ? can anyone help me !

Cheers !!
 
Old 04-30-2007, 03:41 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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..
 
Old 05-01-2007, 12:54 AM   #3
OzTEXS
LQ Newbie
 
Registered: Dec 2006
Distribution: Redhat ES 4.0
Posts: 21

Original Poster
Rep: Reputation: 15
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 ?
 
Old 05-01-2007, 06:43 PM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Your A record is in Blue..

Quote:
default@debian:~$ dig tallwood.homeip.net

; <<>> DiG 9.4.0 <<>> tallwood.homeip.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23963
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 5

;; QUESTION SECTION:
;tallwood.homeip.net. IN A

;; ANSWER SECTION:
tallwood.homeip.net. 60 IN A XXX.XX.XXX.XXX

;; AUTHORITY SECTION:
homeip.net. 64844 IN NS ns5.dyndns.org.


;; ADDITIONAL SECTION:
ns1.dyndns.org. 13152 IN A 63.208.196.90


;; Query time: 63 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Tue May 1 19:37:29 2007
;; MSG SIZE rcvd: 233
but when I query the MX record for that domain I get NO answer...
an MX record is required in order to receive email

Quote:
default@debian:~$ dig tallwood.homeip.net MX

; <<>> DiG 9.4.0 <<>> tallwood.homeip.net MX
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50566
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;tallwood.homeip.net. IN MX

;; AUTHORITY SECTION:
homeip.net. 600 IN SOA ns1.dyndns.org. hostmaster.dyndns.org. 2268515311 600 300 604800 600

;; Query time: 62 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Tue May 1 19:37:40 2007
;; MSG SIZE rcvd: 98
A Address, code 1. Used for storing an IP address (specifically, an IPv4 32-bit address) associated with a domain name. Defined in RFC 1035. ftp://ftp.is.co.za/rfc/rfc1035.txt

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.
 
Old 05-02-2007, 12:55 AM   #5
OzTEXS
LQ Newbie
 
Registered: Dec 2006
Distribution: Redhat ES 4.0
Posts: 21

Original Poster
Rep: Reputation: 15
excellent reply farslayer .. i will investigate accordingly.

thanks !
 
Old 05-02-2007, 01:11 AM   #6
OzTEXS
LQ Newbie
 
Registered: Dec 2006
Distribution: Redhat ES 4.0
Posts: 21

Original Poster
Rep: Reputation: 15
ok then .. if i add a valid mail rely to my dyndns account under the Mail Exchanger section .. will this do the trick ?
 
Old 05-02-2007, 08:06 PM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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..
 
Old 05-03-2007, 01:55 AM   #8
OzTEXS
LQ Newbie
 
Registered: Dec 2006
Distribution: Redhat ES 4.0
Posts: 21

Original Poster
Rep: Reputation: 15
ok so my smtp server should be the mx .. mail.tallwood.homeip.net ?
 
Old 05-03-2007, 09:02 PM   #9
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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
 
Old 05-05-2007, 08:06 AM   #10
OzTEXS
LQ Newbie
 
Registered: Dec 2006
Distribution: Redhat ES 4.0
Posts: 21

Original Poster
Rep: Reputation: 15
thanks mate !!

all good.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can receive emails but cannot send it? rhxk Linux - General 6 03-06-2007 04:24 PM
Can't Send or Receive Emails with Hula markw8500 Linux - Software 0 11-20-2005 11:52 AM
Postfix cannot receive emails from outside antho Linux - Newbie 0 02-24-2004 02:02 AM
Can send but not receive any emails with Qmail. anorman Linux - Software 1 12-11-2003 02:51 PM
Can't send or Receive Emails amohime Linux - Networking 4 04-11-2003 02:42 AM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration