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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th July 2008, 19:07
ranouf ranouf is offline
Junior Member
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default mail for web.carnould.com loops back to myself

Hello,

I follow this tutorial : http://www.howtoforge.com/virtual-us...-ubuntu8.04-p4

But when I want to send a mail like this :
mailx cedric@web.carnould.com -s HELLOWORD
.

I have these messages in /var/log/mail.log
Jul 25 19:02:59 web postfix/pickup[3659]: 8F9B737FEC: uid=0 from=<root>
Jul 25 19:02:59 web postfix/cleanup[3749]: 8F9B737FEC: message-id=<20080725170259.8F9B737FEC@web.carnould.com>
Jul 25 19:02:59 web postfix/qmgr[3663]: 8F9B737FEC: from=<root@web.carnould.com>, size=299, nrcpt=1 (queue active)
Jul 25 19:03:01 web postfix/smtpd[3754]: connect from localhost[127.0.0.1]
Jul 25 19:03:01 web postfix/smtpd[3754]: 78D1C37FEB: client=localhost[127.0.0.1]
Jul 25 19:03:01 web postfix/cleanup[3749]: 78D1C37FEB: message-id=<20080725170259.8F9B737FEC@web.carnould.com>
Jul 25 19:03:01 web postfix/qmgr[3663]: 78D1C37FEB: from=<root@web.carnould.com>, size=932, nrcpt=1 (queue active)
Jul 25 19:03:01 web postfix/smtpd[3754]: disconnect from localhost[127.0.0.1]
Jul 25 19:03:01 web postfix/smtp[3755]: 78D1C37FEB: to=<cedric@web.carnould.com>, relay=none, delay=0.03, delays=0.01/0.01/0/0, dsn=5.4.6, status=bounced (mail for web.carnould.com loops back to myself)
Jul 25 19:03:01 web postfix/cleanup[3749]: 8422038547: message-id=<20080725170301.8422038547@web.carnould.com>
Jul 25 19:03:01 web postfix/qmgr[3663]: 8422038547: from=<>, size=2801, nrcpt=1 (queue active)
Jul 25 19:03:01 web postfix/bounce[3756]: 78D1C37FEB: sender non-delivery notification: 8422038547
Jul 25 19:03:01 web postfix/qmgr[3663]: 78D1C37FEB: removed
Jul 25 19:03:01 web postfix/smtp[3755]: 8422038547: to=<root@web.carnould.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for web.carnould.com loops back to myself)
Jul 25 19:03:01 web postfix/qmgr[3663]: 8422038547: removed
Jul 25 19:03:01 web amavis[3251]: (03251-04) Passed CLEAN, <root@web.carnould.com> -> <cedric@web.carnould.com>, Message-ID: <20080725170259.8F9B737FEC@web.carnould.com>, mail_id: iXeZjZTdDllo, Hits: 2.88, size: 299, queued_as: 78D1C37FEB, 1925 ms
Jul 25 19:03:01 web postfix/smtp[3752]: 8F9B737FEC: to=<cedric@web.carnould.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2, delays=0.06/0.01/0.01/1.9, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 78D1C37FEB)
Jul 25 19:03:01 web postfix/qmgr[3663]: 8F9B737FEC: removed


I imagine that the problem could be come from DNS configuration :
web.carnould.com. A - 88.191.46.33
web.carnould.com. MX 10 web.carnould.com.

Or perhaps /etc/postifx/main.cf
# 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

readme_directory = /usr/share/doc/postfix

# TLS parameters
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

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

myhostname = web.carnould.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = web.carnould.com, localhost, localhost.localdomain
#relayhost =
mynetworks = 127.0.0.0/8, 88.191.46.33/24
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 = /home/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, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_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_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings


Or /etc/hostname :
web.carnould.com

Could you help me please ?
Reply With Quote
Sponsored Links
  #2  
Old 25th July 2008, 20:28
ranouf ranouf is offline
Junior Member
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have more informations about my DNS :
host -v -t MX web.carnould.com


Trying "web.carnould.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16231
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;web.carnould.com. IN MX

;; ANSWER SECTION:
web.carnould.com. 80043 IN MX 10 web.carnould.com.

;; AUTHORITY SECTION:
carnould.com. 79656 IN NS ns2.serveursdns.net.
carnould.com. 79656 IN NS ns1.serveursdns.net.

;; ADDITIONAL SECTION:
web.carnould.com. 79656 IN A 88.191.46.33
ns2.serveursdns.net. 166056 IN A 217.76.128.160
ns1.serveursdns.net. 166056 IN A 217.76.129.160

Received 149 bytes from 127.0.0.1#53 in 1 ms


Is it ok ?
Reply With Quote
  #3  
Old 26th July 2008, 11:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please add web.carnould.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.
__________________
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
  #4  
Old 28th July 2008, 21:19
ranouf ranouf is offline
Junior Member
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I succeed !
The pb was in Table Transport I wite my IP in transport instead of ":"

Thanks for your help
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 server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 20:53.


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