HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Mail errors unknown address (http://www.howtoforge.com/forums/showthread.php?t=19111)

terryoleary1981 7th January 2008 11:16

Mail errors unknown address
 
Hi

I've not been able to receive any emails to the email i've setup using ispconfig. I can send no problem but there seems to be a problem receiving. When I email the account i get the following error back

5.10 - Unknown address error 550 - relay not permitted.

Seems i may have configured something incorrectly, can anyone help and i'm new to linux.

Thanks

till 7th January 2008 11:41

Please post the error messages from the mail log.

terryoleary1981 7th January 2008 11:49

Sure, where abouts can i find the log?

The error i get is actually

This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

admin@test.co.uk

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 13): 550 relay not permitted

(i've changed the email addy here for privacy)

My log is:

Quote:

Jan 7 01:32:53 localhost postfix/smtpd[7881]: 640AC50842D: client=localhost[127.0.0.1], sasl_sender=apache@localhost.localdomain
Jan 7 01:32:53 localhost postfix/cleanup[7884]: 640AC50842D: message-id=<b8859be6fb0b6bbd154f472e10c06adc@www.test.co.u k>
Jan 7 01:32:53 localhost postfix/qmgr[6392]: 640AC50842D: from=<apache@localhost.localdomain>, size=1391, nrcpt=1 (queue active)
Jan 7 01:32:53 localhost sendmail[7880]: m071Wr7f007880: to=terry.oleary@gmail.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31011, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 640AC50842D)
Jan 7 01:32:53 localhost postfix/smtpd[7881]: disconnect from localhost[127.0.0.1]
Jan 7 01:32:54 localhost postfix/smtp[7885]: 640AC50842D: to=<terry.oleary@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.183.114]:25, delay=1.5, delays=0.1/0.02/0.21/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1199669598 k5si23610837nfd.23)
Jan 7 01:32:54 localhost postfix/qmgr[6392]: 640AC50842D: removed
Jan 7 01:36:14 localhost sendmail[7944]: m071aE3b007944: from=apache, size=1013, class=0, nrcpts=1, msgid=<7765a499ca6ff55874367fe3d95a8544@www.test.c o.uk>, relay=apache@localhost
Jan 7 01:36:14 localhost postfix/smtpd[7945]: connect from localhost[127.0.0.1]
Jan 7 01:36:14 localhost postfix/smtpd[7945]: setting up TLS connection from localhost[127.0.0.1]
Jan 7 01:36:14 localhost sendmail[7944]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 7 01:36:14 localhost postfix/smtpd[7945]: TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jan 7 01:36:14 localhost postfix/smtpd[7945]: DB85D50842D: client=localhost[127.0.0.1], sasl_sender=apache@localhost.localdomain
Jan 7 01:36:14 localhost postfix/cleanup[7948]: DB85D50842D: message-id=<7765a499ca6ff55874367fe3d95a8544@www.test.co.u k>
Jan 7 01:36:14 localhost postfix/qmgr[6392]: DB85D50842D: from=<apache@localhost.localdomain>, size=1393, nrcpt=1 (queue active)
Jan 7 01:36:14 localhost sendmail[7944]: m071aE3b007944: to=terry.oleary@gmail.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31013, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as DB85D50842D)
Jan 7 01:36:14 localhost postfix/smtpd[7945]: disconnect from localhost[127.0.0.1]
Jan 7 01:36:16 localhost postfix/smtp[7949]: DB85D50842D: to=<terry.oleary@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.183.114]:25, delay=1.9, delays=0.1/0.02/0.21/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1199669800 k7si26790683nfh.0)
Jan 7 01:36:16 localhost postfix/qmgr[6392]: DB85D50842D: removed
Jan 7 01:36:32 localhost sendmail[7953]: m071aWQR007953: from=apache, size=1013, class=0, nrcpts=1, msgid=<c45b14165e98420f7c2d25bc8c7b1fe2@www.test.c o.uk>, relay=apache@localhost
Jan 7 01:36:32 localhost postfix/smtpd[7945]: connect from localhost[127.0.0.1]
Jan 7 01:36:32 localhost postfix/smtpd[7945]: setting up TLS connection from localhost[127.0.0.1]
Jan 7 01:36:32 localhost postfix/smtpd[7945]: TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jan 7 01:36:32 localhost sendmail[7953]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 7 01:36:32 localhost postfix/smtpd[7945]: 453D850842D: client=localhost[127.0.0.1], sasl_sender=apache@localhost.localdomain
Jan 7 01:36:32 localhost postfix/cleanup[7948]: 453D850842D: message-id=<c45b14165e98420f7c2d25bc8c7b1fe2@www.test.co.u k>
Jan 7 01:36:32 localhost postfix/qmgr[6392]: 453D850842D: from=<apache@localhost.localdomain>, size=1393, nrcpt=1 (queue active)
Jan 7 01:36:32 localhost sendmail[7953]: m071aWQR007953: to=terry.oleary@gmail.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31013, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 453D850842D)
Jan 7 01:36:32 localhost postfix/smtpd[7945]: disconnect from localhost[127.0.0.1]
Jan 7 01:36:33 localhost postfix/smtp[7949]: 453D850842D: to=<terry.oleary@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.183.114]:25, delay=1.1, delays=0.1/0/0.23/0.77, dsn=2.0.0, status=sent (250 2.0.0 OK 1199669817 d2si23645425nfc.11)
Jan 7 01:36:33 localhost postfix/qmgr[6392]: 453D850842D: removed
Jan 7 01:40:06 localhost dovecot: pop3-login: Login: user=<admin>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Jan 7 01:40:06 localhost dovecot: POP3(admin): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 7 01:40:49 localhost freshclam[2768]: Received signal: wake up
Jan 7 01:40:49 localhost freshclam[2768]: ClamAV update process started at Mon Jan 7 01:40:49 2008
Jan 7 01:40:49 localhost freshclam[2768]: Your ClamAV installation is OUTDATED!
Jan 7 01:40:49 localhost freshclam[2768]: Local version: 0.91.2 Recommended version: 0.92
Jan 7 01:40:49 localhost freshclam[2768]: DON'T PANIC! Read http://www.clamav.net/support/faq
Jan 7 01:40:49 localhost freshclam[2768]: main.inc is up to date (version: 45, sigs: 169676, f-level: 21, builder: sven)
Jan 7 01:40:49 localhost freshclam[2768]: Downloading daily-5391.cdiff [100%]
Jan 7 01:40:49 localhost freshclam[2768]: Downloading daily-5392.cdiff [100%]
Jan 7 01:40:49 localhost freshclam[2768]: Downloading daily-5393.cdiff [100%]
Jan 7 01:40:50 localhost freshclam[2768]: Downloading daily-5394.cdiff [100%]
Jan 7 01:40:50 localhost freshclam[2768]: Downloading daily-5395.cdiff [100%]
Jan 7 01:40:50 localhost freshclam[2768]: Downloading daily-5396.cdiff [100%]
Jan 7 01:40:50 localhost freshclam[2768]: daily.inc updated (version: 5396, sigs: 18690, f-level: 21, builder: ccordes)
Jan 7 01:40:50 localhost freshclam[2768]: Database updated (188366 signatures) from database.clamav.net (IP: 217.135.32.99)
Jan 7 01:40:50 localhost freshclam[2768]: --------------------------------------
Jan 7 01:46:42 localhost dovecot: pop3-login: Login: user=<admin>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Jan 7 01:46:42 localhost dovecot: POP3(admin): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 7 04:04:50 localhost freshclam[2768]: Received signal: wake up
Jan 7 04:04:50 localhost freshclam[2768]: ClamAV update process started at Mon Jan 7 04:04:50 2008
Jan 7 04:04:52 localhost freshclam[2768]: Your ClamAV installation is OUTDATED!
Jan 7 04:04:52 localhost freshclam[2768]: Local version: 0.91.2 Recommended version: 0.92
Jan 7 04:04:52 localhost freshclam[2768]: DON'T PANIC! Read http://www.clamav.net/support/faq
Jan 7 04:04:52 localhost freshclam[2768]: main.inc is up to date (version: 45, sigs: 169676, f-level: 21, builder: sven)
Jan 7 04:04:53 localhost freshclam[2768]: Downloading daily-5397.cdiff [100%]
Jan 7 04:04:53 localhost freshclam[2768]: Downloading daily-5398.cdiff [100%]
Jan 7 04:04:53 localhost freshclam[2768]: Downloading daily-5399.cdiff [100%]
Jan 7 04:04:53 localhost freshclam[2768]: Downloading daily-5400.cdiff [100%]
Jan 7 04:04:53 localhost freshclam[2768]: Downloading daily-5401.cdiff [100%]
Jan 7 04:04:53 localhost freshclam[2768]: Downloading daily-5402.cdiff [100%]
Jan 7 04:04:53 localhost freshclam[2768]: daily.inc updated (version: 5402, sigs: 19124, f-level: 21, builder: ccordes)
Jan 7 04:04:53 localhost freshclam[2768]: Database updated (188800 signatures) from database.clamav.net (IP: 217.135.32.99)
Jan 7 04:04:53 localhost freshclam[2768]: --------------------------------------
Jan 7 04:10:38 localhost sendmail[10302]: m074AYBp010302: from=root, size=5642, class=0, nrcpts=1, msgid=<200801070410.m074AYBp010302@localhost.local domain>, relay=root@localhost
Jan 7 04:10:38 localhost postfix/smtpd[10551]: connect from localhost[127.0.0.1]
Jan 7 04:10:38 localhost postfix/smtpd[10551]: setting up TLS connection from localhost[127.0.0.1]
Jan 7 04:10:38 localhost sendmail[10302]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 7 04:10:38 localhost postfix/smtpd[10551]: TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jan 7 04:10:38 localhost postfix/smtpd[10551]: 4ACE1508445: client=localhost[127.0.0.1], sasl_sender=root@localhost.localdomain
Jan 7 04:10:38 localhost postfix/cleanup[10554]: 4ACE1508445: message-id=<200801070410.m074AYBp010302@localhost.localdom ain>
Jan 7 04:10:38 localhost postfix/qmgr[6392]: 4ACE1508445: from=<root@localhost.localdomain>, size=6383, nrcpt=1 (queue active)
Jan 7 04:10:38 localhost sendmail[10302]: m074AYBp010302: to=root, ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:00, mailer=relay, pri=35642, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 4ACE1508445)
Jan 7 04:10:38 localhost postfix/local[10555]: 4ACE1508445: to=<root@localhost.localdomain>, relay=local, delay=0.08, delays=0.06/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 7 04:10:38 localhost postfix/qmgr[6392]: 4ACE1508445: removed
Jan 7 04:10:38 localhost postfix/smtpd[10551]: disconnect from localhost[127.0.0.1]


terryoleary1981 7th January 2008 15:26

also this is the contents of my resolv.conf (which somewhere i read might be helpful to know?!?!)
------------------------------------
Quote:

nameserver 192.168.1.254
search localdomain
-------------------------------------

192.168.1.1254 is the internal ip of the router.

terryoleary1981 8th January 2008 10:12

anyone able to help with this problem as it is still an issue.

thanks

falko 8th January 2008 17:49

Please check if the MX record of the domain that you're sending to is pointing to the right server:
Code:

dig mx yourdomain.com

terryoleary1981 8th January 2008 17:58

when i did that the MX record for the domain points at

i've changed my domain name from the real on to mydomain.co.uk here for privacy.

Quote:

mydomain.co.uk 86304 IN MX 10 87.194.223.165.mydomain.co.uk
think this looks odd as it has my external IP address.mydomain name? Have i messed up somewhere?

falko 9th January 2008 16:31

Does
Code:

dig 87.194.223.165.mydomain.co.uk
resolve to the right IP?

terryoleary1981 10th January 2008 01:10

hi

when i run dig i get

;; Query time: 46 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Thu Jan 10 00:06:14 2008
;; MSG SIZE rcvd: 111

the server it resolved too is the internal IP address of the router here.

I dont really know what i should be setting my MX and @ records to with the registrar so that is my first problem! What should it be? At the moment the @ record is set to the external ip and the mx record is mx10.mydomain.co.uk

(where my domain is my domain name)

falko 10th January 2008 16:51

Quote:

Originally Posted by terryoleary1981
At the moment the @ record is set to the external ip

That's right.

Quote:

Originally Posted by terryoleary1981
and the mx record is mx10.mydomain.co.uk

You must also create an A record for mx10.mydomain.co.uk (should point to your public IP address as well).


All times are GMT +2. The time now is 06:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.