Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have one server set up with newest postfix,dovecot,imap,,mysql-server and mutt if that matters
- Its local user is called "administrator", the local hostname "mydebian" and the dns "example.org"
- It currently has two mailboxes: "[email protected]" and "[email protected]"
- - When trying to send mail from one account to the other (with mutt),
- it says that the mail was sent by "[email protected]"
- - When trying to send mail destinated outside local net, for example to google mail,
- same thing happens
- - When trying to send mail from google mail to any of the accounts at "@example.org",
- google tells me the following:
- ----------------------------------------------------------------------------
- Delivery to the following recipient failed permanently:
- test@example.org
- Technical details of permanent failure:
- Google tried to deliver your message, but it was rejected by the recipient domain.
- We recommend contacting the other email provider for further information about the
- cause of this error. The error that the other server returned was:
- 550 550 5.7.1 Unable to relay (state 14).
- ----------------------------------------------------------------------------
- - Below are some logs/useful information
- # MX record
- administrator@mydebian:/$ host -t MX example.org
- example.org mail is handled by 10 mail.example.org.
- # mail.log - sending to "[email protected]" from "[email protected]"
- administrator@mydebian:/$ cat /var/mail/mail.log:
- .
- .
- .
- Nov 16 00:40:08 mydebian dovecot: imap-login: Login: user=<info@example.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
- Nov 16 00:40:15 mydebian dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, TLS: Disconnected
- Nov 16 00:40:53 mydebian postfix/pickup[566]: EE22E19C1B8: uid=1000 from=<administrator>
- Nov 16 00:40:53 mydebian postfix/cleanup[1425]: EE22E19C1B8: message-id=<20111116060653.GA1382@example.org>
- Nov 16 00:40:54 mydebian postfix/qmgr[565]: EE22E19C1B8: from=<administrator@example.org>, size=501, nrcpt=1 (queue active)
- Nov 16 00:40:54 mydebian dovecot: deliver(booking@example.org): msgid=<20111116060653.GA1382@example.org>: saved mail to INBOX
- Nov 16 00:40:54 mydebian postfix/pipe[1427]: EE22E19C1B8: to=<booking@example.org>, relay=dovecot, delay=0.48, delays=0.2/0.01/0/0.27, dsn=2.0.0, status=sent (delivered via dovecot service)
- Nov 16 00:40:54 mydebian postfix/qmgr[565]: EE22E19C1B8: removed
- Nov 16 00:40:03 mydebian dovecot: imap-login: Login: user=<booking@example.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
- Nov 16 00:40:24 mydebian dovecot: IMAP(booking@example.org): Disconnected: Logged out bytes=360/2260
- # mail.log - sending to "[email protected]" from "[email protected]"
- administrator@mydebian:/$ cat /var/mail/mail.log:
- .
- .
- .
- Nov 16 00:45:21 mydebian postfix/postfix-script[2871]: refreshing the Postfix mail system
- Nov 16 00:45:21 mydebian postfix/master[8601]: reload -- version 2.7.1, configuration /etc/postfix
- Nov 16 00:45:49 mydebian dovecot: imap-login: Login: user=<info@example.org>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
- Nov 16 00:46:22 mydebian postfix/pickup[2875]: 47FB119C1CA: uid=1000 from=<administrator>
- Nov 16 00:46:22 mydebian postfix/cleanup[2924]: 47FB119C1CA: message-id=<20111116064622.GA2887@example.org>
- Nov 16 00:46:22 mydebian postfix/qmgr[2876]: 47FB119C1CA: from=<administrator@example.org>, size=475, nrcpt=1 (queue active)
- Nov 16 00:46:23 mydebian postfix/smtp[2926]: 47FB119C1CA: to=<my_mail@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.173.27]:25, delay=1.7, delays=0.19/0.01/0.63/0.91, dsn=2.0.0, status=sent (250 2.0.0 OK 1321400787 ob4si576885lab.32)
- Nov 16 00:46:23 mydebian postfix/qmgr[2876]: 47FB119C1CA: removed
- Nov 16 00:46:25 mydebian dovecot: IMAP(info@example.org): Disconnected: Logged out bytes=288/2355
- # postconf -n
- administrator@mydebian:/$ sudo postconf -n
- append_dot_mydomain = no
- biff = no
- config_directory = /etc/postfix
- inet_interfaces = all
- local_recipient_maps =
- mailbox_command = procmail -a "$EXTENSION"
- mailbox_size_limit = 0
- mydestination =
- mydomain = example.org
- myhostname = example.org
- mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.10.0/24
- myorigin = $mydomain
- readme_directory = no
- recipient_delimiter = +
- relay_domains =
- relayhost =
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
- smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_path = private/auth
- smtpd_sasl_type = dovecot
- smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
- smtpd_tls_key_file = /etc/ssl/private/postfix.pem
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtpd_use_tls = yes
- virtual_alias_domains = mail.example.org
- virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
- virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
- virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
- virtual_transport = dovecot
Advertisement
Add Comment
Please, Sign In to add comment