Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2009, 14:00
Deficit Deficit is offline
Junior Member
 
Join Date: Jun 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't send mail [Lenny ISPConfig 3]

Hello,
I'm new to this, so please bear with me. This is my first time (for setting up a server that is )

I went through this great tutorial: "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]"

Everything works except from sending emails. This goes for both using PHP and squirrel webmail. I can however, recieve emails and read them using squirrel.

I've got a static IP and I've checked it at http://mxtoolbox.com -- it returned: "Listed: 0 time(s)", so far so good.

I've set the server up using accelerator.cern.no -- The place where I've registered the domain I've put this address as the mx host and set priority 1.

In ISPConfig 3 I get the following under "Monitor - Show Mail-Queue" (removed some email + entries):
Code:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
40274230340 1318 Sat Jun 13 10:34:20 someemail
(connect to alt4.gmail-smtp-in.l.google.com[209.85.222.44]:25: Connection timed out)
anotheremail

4E2F323033C 1581 Sat Jun 13 01:42:38 someemail
(connect to alt4.gmail-smtp-in.l.google.com[209.85.222.65]:25: Connection timed out)
anotheremail

80AF323033A 1312 Sat Jun 13 01:37:03 someemail
(connect to alt4.gmail-smtp-in.l.google.com[209.85.222.8]:25: Connection timed out)
anotheremail

D8550230341 1582 Sat Jun 13 10:38:43 someemail
(connect to alt4.gmail-smtp-in.l.google.com[209.85.222.97]:25: Connection timed out)
anotheremail

0B92F230337 1097 Sat Jun 13 01:41:29 MAILER-DAEMON
(connect to alt4.gmail-smtp-in.l.google.com[209.85.222.2]:25: Connection timed out)
anotheremail
Under "Monitor - Show Mail-Log" I have this:
Code:
Jun 13 13:20:01 accelerator postfix/smtpd[24626]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:22:01 accelerator postfix/pickup[7564]: 6C905230342: uid=5003 from=
Jun 13 13:22:01 accelerator postfix/cleanup[24664]: 6C905230342: message-id=<20090613112201.6C905230342@accelerator.cern.no>
Jun 13 13:22:01 accelerator postfix/qmgr[2933]: 6C905230342: from=, size=646, nrcpt=1 (queue active)
Jun 13 13:22:01 accelerator postfix/smtpd[24670]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:22:01 accelerator postfix/smtpd[24670]: 9AC6823033D: client=localhost.localdomain[127.0.0.1]
Jun 13 13:22:01 accelerator postfix/cleanup[24664]: 9AC6823033D: message-id=<20090613112201.6C905230342@accelerator.cern.no>
Jun 13 13:22:01 accelerator postfix/qmgr[2933]: 9AC6823033D: from=, size=1129, nrcpt=1 (queue active)
Jun 13 13:22:01 accelerator postfix/smtpd[24670]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:22:01 accelerator amavis[5390]: (05390-06) Passed CLEAN, -> , Message-ID: <20090613112201.6C905230342@accelerator.cern.no>, mail_id: JHaZ-ofo57+H, Hits: -0.001, size: 646, queued_as: 9AC6823033D, 183 ms
Jun 13 13:22:01 accelerator postfix/smtp[24667]: 6C905230342: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=0.24, delays=0.05/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=05390-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9AC6823033D)
Jun 13 13:22:01 accelerator postfix/qmgr[2933]: 6C905230342: removed
Jun 13 13:22:01 accelerator postfix/local[24671]: 9AC6823033D: to=, relay=local, delay=0.02, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jun 13 13:22:01 accelerator postfix/qmgr[2933]: 9AC6823033D: removed
Jun 13 13:24:50 accelerator postfix/qmgr[2933]: 4E2F323033C: from=, size=1581, nrcpt=1 (queue active)
Jun 13 13:25:01 accelerator imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:25:01 accelerator imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jun 13 13:25:01 accelerator pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:25:01 accelerator pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 13 13:25:01 accelerator postfix/smtpd[24712]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:25:01 accelerator postfix/smtpd[24712]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jun 13 13:25:01 accelerator postfix/smtpd[24712]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:25:20 accelerator postfix/smtp[24692]: connect to gmail-smtp-in.l.google.com[74.125.79.114]:25: Connection timed out
Jun 13 13:25:50 accelerator postfix/smtp[24692]: connect to alt1.gmail-smtp-in.l.google.com[209.85.220.70]:25: Connection timed out
Jun 13 13:26:20 accelerator postfix/smtp[24692]: connect to alt2.gmail-smtp-in.l.google.com[209.85.135.114]:25: Connection timed out
Jun 13 13:26:50 accelerator postfix/smtp[24692]: connect to alt3.gmail-smtp-in.l.google.com[209.85.210.74]:25: Connection timed out
Jun 13 13:27:20 accelerator postfix/smtp[24692]: connect to alt4.gmail-smtp-in.l.google.com[209.85.222.65]:25: Connection timed out
Jun 13 13:27:20 accelerator postfix/smtp[24692]: 4E2F323033C: to=, relay=none, delay=42282, delays=42132/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.222.65]:25: Connection timed out)
Jun 13 13:29:50 accelerator postfix/qmgr[2933]: 5FB61230336: from=, size=1358, nrcpt=1 (queue active)
Jun 13 13:30:01 accelerator postfix/pickup[7564]: B68E2230342: uid=5003 from=
Jun 13 13:30:01 accelerator postfix/cleanup[24778]: B68E2230342: message-id=<20090613113001.B68E2230342@accelerator.cern.no>
Jun 13 13:30:01 accelerator pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:30:01 accelerator imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:30:01 accelerator imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jun 13 13:30:01 accelerator pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 13 13:30:01 accelerator postfix/smtpd[24792]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:30:01 accelerator postfix/smtpd[24792]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jun 13 13:30:01 accelerator postfix/smtpd[24792]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:30:01 accelerator postfix/qmgr[2933]: B68E2230342: from=, size=639, nrcpt=1 (queue active)
Jun 13 13:30:02 accelerator postfix/smtpd[24811]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:30:02 accelerator postfix/smtpd[24811]: 0573D23033D: client=localhost.localdomain[127.0.0.1]
Jun 13 13:30:02 accelerator postfix/cleanup[24778]: 0573D23033D: message-id=<20090613113001.B68E2230342@accelerator.cern.no>
Jun 13 13:30:02 accelerator postfix/qmgr[2933]: 0573D23033D: from=, size=1122, nrcpt=1 (queue active)
Jun 13 13:30:02 accelerator postfix/smtpd[24811]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:30:02 accelerator amavis[5291]: (05291-07) Passed CLEAN, -> , Message-ID: <20090613113001.B68E2230342@accelerator.cern.no>, mail_id: aS6agSUxjwuK, Hits: -0.001, size: 639, queued_as: 0573D23033D, 203 ms
Jun 13 13:30:02 accelerator postfix/smtp[24805]: B68E2230342: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=0.32, delays=0.11/0/0/0.2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=05291-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0573D23033D)
Jun 13 13:30:02 accelerator postfix/qmgr[2933]: B68E2230342: removed
Jun 13 13:30:02 accelerator postfix/local[24812]: 0573D23033D: to=, relay=local, delay=0.02, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jun 13 13:30:02 accelerator postfix/qmgr[2933]: 0573D23033D: removed
Jun 13 13:30:20 accelerator postfix/smtp[24765]: connect to gmail-smtp-in.l.google.com[74.125.79.114]:25: Connection timed out
Jun 13 13:30:50 accelerator postfix/smtp[24765]: connect to alt1.gmail-smtp-in.l.google.com[209.85.220.40]:25: Connection timed out
Jun 13 13:31:20 accelerator postfix/smtp[24765]: connect to alt2.gmail-smtp-in.l.google.com[209.85.135.27]:25: Connection timed out
Jun 13 13:31:50 accelerator postfix/smtp[24765]: connect to alt3.gmail-smtp-in.l.google.com[209.85.210.43]:25: Connection timed out
Jun 13 13:32:20 accelerator postfix/smtp[24765]: connect to alt4.gmail-smtp-in.l.google.com[209.85.222.20]:25: Connection timed out
Jun 13 13:32:20 accelerator postfix/smtp[24765]: 5FB61230336: to=, relay=none, delay=11215, delays=11065/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.222.20]:25: Connection timed out)
Jun 13 13:35:02 accelerator pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:35:02 accelerator pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 13 13:35:02 accelerator imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:35:02 accelerator imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jun 13 13:35:02 accelerator postfix/smtpd[24870]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:35:02 accelerator postfix/smtpd[24870]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jun 13 13:35:02 accelerator postfix/smtpd[24870]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:39:50 accelerator postfix/qmgr[2933]: D8550230341: from=, size=1582, nrcpt=1 (queue active)
Jun 13 13:40:01 accelerator pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:40:01 accelerator imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:40:01 accelerator imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jun 13 13:40:01 accelerator pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 13 13:40:01 accelerator postfix/smtpd[24957]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:40:01 accelerator postfix/smtpd[24957]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jun 13 13:40:01 accelerator postfix/smtpd[24957]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:40:20 accelerator postfix/smtp[24937]: connect to gmail-smtp-in.l.google.com[74.125.79.114]:25: Connection timed out
Jun 13 13:40:50 accelerator postfix/smtp[24937]: connect to alt1.gmail-smtp-in.l.google.com[209.85.220.23]:25: Connection timed out
Jun 13 13:41:20 accelerator postfix/smtp[24937]: connect to alt2.gmail-smtp-in.l.google.com[209.85.135.27]:25: Connection timed out
Jun 13 13:41:50 accelerator postfix/smtp[24937]: connect to alt3.gmail-smtp-in.l.google.com[209.85.210.40]:25: Connection timed out
Jun 13 13:42:20 accelerator postfix/smtp[24937]: connect to alt4.gmail-smtp-in.l.google.com[209.85.222.97]:25: Connection timed out
Jun 13 13:42:20 accelerator postfix/smtp[24937]: D8550230341: to=, relay=none, delay=11016, delays=10866/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.222.97]:25: Connection timed out)
Jun 13 13:44:50 accelerator postfix/qmgr[2933]: 0B92F230337: from=<>, size=1097, nrcpt=1 (queue active)
Jun 13 13:45:01 accelerator imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:45:01 accelerator imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jun 13 13:45:01 accelerator pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:45:01 accelerator pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 13 13:45:01 accelerator postfix/smtpd[25028]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:45:01 accelerator postfix/smtpd[25028]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jun 13 13:45:01 accelerator postfix/smtpd[25028]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:45:20 accelerator postfix/smtp[25008]: connect to gmail-smtp-in.l.google.com[74.125.79.27]:25: Connection timed out
Jun 13 13:45:50 accelerator postfix/smtp[25008]: connect to alt1.gmail-smtp-in.l.google.com[209.85.220.13]:25: Connection timed out
Jun 13 13:46:20 accelerator postfix/smtp[25008]: connect to alt2.gmail-smtp-in.l.google.com[209.85.135.27]:25: Connection timed out
Jun 13 13:46:50 accelerator postfix/smtp[25008]: connect to alt3.gmail-smtp-in.l.google.com[209.85.210.28]:25: Connection timed out
Jun 13 13:47:20 accelerator postfix/smtp[25008]: connect to alt4.gmail-smtp-in.l.google.com[209.85.222.2]:25: Connection timed out
Jun 13 13:47:20 accelerator postfix/smtp[25008]: 0B92F230337: to=, relay=none, delay=43551, delays=43401/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.222.2]:25: Connection timed out)
Jun 13 13:50:01 accelerator pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:50:01 accelerator pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 13 13:50:01 accelerator imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:50:01 accelerator imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jun 13 13:50:01 accelerator postfix/smtpd[25095]: connect from localhost.localdomain[127.0.0.1]
Jun 13 13:50:01 accelerator postfix/smtpd[25095]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jun 13 13:50:01 accelerator postfix/smtpd[25095]: disconnect from localhost.localdomain[127.0.0.1]
Jun 13 13:54:50 accelerator postfix/qmgr[2933]: 80AF323033A: from=, size=1312, nrcpt=1 (queue active)
Jun 13 13:55:01 accelerator pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 13 13:55:01 accelerator pop3d: Disconnected, ip=[::ffff:127.0.0.1]
As you can see, I'm unable to send emails to my gmail account. As I stated earlier I'm fully able to get emails from gmail to my server.

I hope some of you can share your time and experience with me.

Thank you very much for your time and attention.
Reply With Quote
Sponsored Links
  #2  
Old 13th June 2009, 16:58
Deficit Deficit is offline
Junior Member
 
Join Date: Jun 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Some updates

I've figured out that my ISP blocks outgoing on port 25. I figured this out by doing:

"telnet smtp.cs4all.nl 587" (works)
"telnet smtp.xs4all.nl 25" (doesn't work)

What I've done is to add the following line to "/etc/postfix/master.cf" and restarted it after doing so.

Code:
587 inet n - n - - smtpd
This doesn't help, unfortunately. My ""/etc/postfix/main.cf" looks like this (all commented lines removed):

Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = /usr/share/doc/postfix
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = accelerator.cern.no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = accelerator.cern.no, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_tls_security_level = may
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_c$
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
The emails in queue is still not being sent, as the mail server is still trying to connect to other servers using port 25.

Furthermore, I'm not able to send mail using a client like thunderbird. I've clicked "TLS, if enabled" but I'm not sure what to put in the username field for authentication.

I've tried both the email, user@domain.com and the password I set in ISPConfig. But the server does not seem to want to authenticate me correctly with those details. What login information should I use?
Reply With Quote
  #3  
Old 14th June 2009, 14:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
 
Default

Your ISP blocks outgoing connections to other servers on port 25, so it doesn't help if you configure your own server to listen on a different port.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
debian, email, lenny

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 14:31
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
ISPConfig send mail with quota warning!!! metaldrummer Installation/Configuration 23 12th January 2007 09:49


All times are GMT +2. The time now is 22:38.


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