Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 16th December 2006, 01:25
hansoffate hansoffate is offline
Junior Member
 
Join Date: Dec 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found the main.cf here is the seciton of it that I think you are talking about.

Code:
myhostname = hans.dnsdojo.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = hans.dnsdojo.com, localhost.dnsdojo.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
What should i change? should i change relayhost to mailhost? How do I find out what I need to put in there? I have att dsl. my e-mail is hansoffate@sbcglobal.net.

Thanks for the help,
-Hans
Reply With Quote
Sponsored Links
  #12  
Old 16th December 2006, 12:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Have a look here: http://www.howtoforge.com/forums/sho...ight=relayhost
__________________
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
  #13  
Old 16th December 2006, 20:57
hansoffate hansoffate is offline
Junior Member
 
Join Date: Dec 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed your 2 posts for that guy. I used the smtp and pop from sbcglobal.net I also added the relayhost.

Here is my mail.log after trying to register a new user for my website.

Code:
Dec 16 10:52:29 hans postfix/anvil[29558]: statistics: max connection rate 1/60s for (smtp:192.168.1.100) at Dec 16 10:49:09
Dec 16 10:52:29 hans postfix/anvil[29558]: statistics: max connection count 1 for (smtp:192.168.1.100) at Dec 16 10:49:09
Dec 16 10:52:29 hans postfix/anvil[29558]: statistics: max cache size 1 at Dec 16 10:49:09
Dec 16 10:53:45 hans postfix/pickup[29529]: E7517141054D: uid=33 from=<www-data>
Dec 16 10:53:45 hans postfix/cleanup[29729]: E7517141054D: message-id=<20061216185345.E7517141054D@hans.dnsdojo.com>
Dec 16 10:53:46 hans postfix/qmgr[29530]: E7517141054D: from=<www-data@hans.dnsdojo.com>, size=1367, nrcpt=1 (queue active)Dec 16 10:53:47 hans postfix/smtp[29731]: E7517141054D: to=<hansoff87@gmail.com>, relay=smtp.sbcglobal.yahoo.com[68.142.198.11]:25, delay=1.1, delays=0.1/0.24/0.81/0, dsn=5.0.0, status=bounced (SASL authentication failed; server smtp.sbcglobal.yahoo.com[68.142.198.11] said: 535 authorization failed (#5.7.0))Dec 16 10:53:47 hans postfix/cleanup[29729]: 162CC141054F: message-id=<20061216185347.162CC141054F@hans.dnsdojo.com>
Dec 16 10:53:47 hans postfix/qmgr[29530]: 162CC141054F: from=<>, size=3301, nrcpt=1 (queue active)
Dec 16 10:53:47 hans postfix/local[29734]: warning: database /etc/aliases.db is older than source file /etc/aliasesDec 16 10:53:47 hans postfix/bounce[29733]: E7517141054D: sender non-delivery notification: 162CC141054F
Dec 16 10:53:47 hans postfix/qmgr[29530]: E7517141054D: removedDec 16 10:53:48 hans postfix/local[29734]: 162CC141054F: to=<www-data@hans.dnsdojo.com>, relay=local, delay=1.1, delays=0.02/0.01/0/1, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Dec 16 10:53:48 hans postfix/qmgr[29530]: 162CC141054F: removed
Thanks for all the help
-Hans
Reply With Quote
  #14  
Old 17th December 2006, 13:30
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,012
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

You used a relayserver (smtp.sbcglobal.yahoo.com) that needs smtp authentication to relay ,mails trough it. You will have to configure your postfix to send authentication information.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 18th December 2006, 02:43
hansoffate hansoffate is offline
Junior Member
 
Join Date: Dec 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

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

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
"main.cf" 58 lines, 1856 characters
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

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

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = hans.dnsdojo.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = hans.dnsdojo.com, localhost.dnsdojo.com, , localhost
relayhost = smtp.sbcglobal.yahoo.com
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =

That is my main.cf

Is there something wrong there?

Thank you
-Hans
Reply With Quote
  #16  
Old 18th December 2006, 15:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Do you have the correct username and password in /etc/postfix/sasl_passwd? Did you run
Code:
postmap /etc/postfix/sasl_passwd
/etc/init.d/postfix restart
?
__________________
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
  #17  
Old 18th December 2006, 20:10
hansoffate hansoffate is offline
Junior Member
 
Join Date: Dec 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks. That fixed it. I forgot to do the postmap command after I changed the file.

New user registration is now working with my site! Thank you!
-Hans
Reply With Quote
  #18  
Old 4th January 2007, 06:49
bwrob bwrob is offline
Member
 
Join Date: Jan 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I go around my isp blocking port 25 and use port 587.
Need to set it up in postfix master.cf.

smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
587 inet n - n - - mtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

bob
Reply With Quote
  #19  
Old 2nd August 2008, 16:16
vijay_ps vijay_ps is offline
Junior Member
 
Join Date: Aug 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default send mail is working properly

Dear Sir,
I am trying to send mails from my website hosted on a linux web server but it is not working.

Please see mail log and tell me what can be the problem and also why it is repeatedly sending mails.
================================================== ========
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qK017139: from=root, size=401, class=0, nrcpts=1, msgid=<200807300015.m6U0F1qK017139@rks.hpitr.com>, relay=root@localhost
Jul 30 05:45:01 rks sendmail[17140]: m6U0F1W7017140: tcpwrappers (rks.hpitr.com, 127.0.0.1) rejection
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qK017139: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30401, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qK017139: m6U0F1qL017139: DSN: Service unavailable
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qL017139: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31425, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qL017139: m6U0F1qM017139: return to sender: Service unavailable
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qM017139: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32449, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qL017139: Losing ./qfm6U0F1qL017139: savemail panic
Jul 30 05:45:01 rks sendmail[17139]: m6U0F1qL017139: SYSERR(root): savemail: cannot save rejected email anywhere
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Oo017156: from=root, size=401, class=0, nrcpts=1, msgid=<200807300016.m6U0G2Oo017156@rks.hpitr.com>, relay=root@localhost
Jul 30 05:46:02 rks sendmail[17157]: m6U0G2ph017157: tcpwrappers (rks.hpitr.com, 127.0.0.1) rejection
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Oo017156: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30401, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Oo017156: m6U0G2Op017156: DSN: Service unavailable
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Op017156: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31425, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Op017156: m6U0G2Oq017156: return to sender: Service unavailable
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Oq017156: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32449, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Op017156: Losing ./qfm6U0G2Op017156: savemail panic
Jul 30 05:46:02 rks sendmail[17156]: m6U0G2Op017156: SYSERR(root): savemail: cannot save rejected email anywhere
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1el017173: from=root, size=401, class=0, nrcpts=1, msgid=<200807300017.m6U0H1el017173@rks.hpitr.com>, relay=root@localhost
Jul 30 05:47:01 rks sendmail[17174]: m6U0H17o017174: tcpwrappers (rks.hpitr.com, 127.0.0.1) rejection
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1el017173: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30401, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1el017173: m6U0H1em017173: DSN: Service unavailable
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1em017173: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31425, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1em017173: m6U0H1en017173: return to sender: Service unavailable
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1en017173: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32449, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1em017173: Losing ./qfm6U0H1em017173: savemail panic
Jul 30 05:47:01 rks sendmail[17173]: m6U0H1em017173: SYSERR(root): savemail: cannot save rejected email anywhere
Jul 30 05:48:01 rks sendmail[17192]: m6U0I1s6017192: from=root, size=401, class=0, nrcpts=1, msgid=<200807300018.m6U0I1s6017192@rks.hpitr.com>, relay=root@localhost
Jul 30 05:48:01 rks sendmail[17193]: m6U0I1IF017193: tcpwrappers (rks.hpitr.com, 127.0.0.1) rejection
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++
Please see the above log and tell us the possible reason. I am using Red hat enterprise linux version 4
Reply With Quote
  #20  
Old 3rd August 2008, 14:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

What's the output of
Code:
netstat -tap
?
What's in /etc/hosts.deny?
__________________
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

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
mail for aol.com loops back to myself CODAC Installation/Configuration 15 7th October 2009 15:36
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 16:13
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16
Server name change stops webmail working shajazzi Installation/Configuration 3 16th May 2006 17:00
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 12:47


All times are GMT +2. The time now is 18:46.


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