HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Step by step email setup for domain & clients (http://www.howtoforge.com/forums/showthread.php?t=42740)

aurasdoom 17th January 2010 02:17

Step by step email setup for domain & clients
 
So what do I have to do to setup email for a domain, let's say website.com, add emails for that domain so that I can:
- send emails via smtp
- receive emails
?

I have DNS setup
I added the email domain website.com
I added an email emailuser@website.com with quota 0 (i guess that means unlimited?) with receiving, imap and pop enabled.
So far I could check my email (I moved them from another server and set the proper permissions)
But I couldn't receive nor send emails.

I managed to make sending of emails work by adding in the postfix whitelist 3 records:
website.com type:sender
unknown type:client
com type:recipient

But that meant I could only send to *@*.com
So how do I get rid of this? I only want it to check against the sender, not the client and the recipient also.

And as for the incoming emails not... coming:

Code:

This is the mail system at host website.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<emailuser@website.com>: unknown user: "emailuser"
Reporting-MTA: dns; website.com
X-Postfix-Queue-ID: 008091BCD0FC
X-Postfix-Sender: rfc822; ***@gmail.com
Arrival-Date: Sun, 17 Jan 2010 02:45:32 +0300 (MSK)

Final-Recipient: rfc822; emailuser@website.com
Original-Recipient: rfc822;emailuser@website.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "emailuser"

Code:

Jan 17 02:49:34 wip postfix/smtpd[25768]: connect from mail-ew0-f209.google.com[209.85.219.209]
Jan 17 02:49:34 wip postfix/trivial-rewrite[25854]: warning: do not list domain website.com in BOTH mydestination and virtual_mailbox_domains
Jan 17 02:49:34 wip postfix/smtpd[25768]: 6E1E51BCC0C7: client=mail-ew0-f209.google.com[209.85.219.209]
Jan 17 02:49:34 wip postfix/cleanup[25912]: 6E1E51BCC0C7: message-id=<0247A40E-360E-4722-A18B-A88B95F001B9@gmail.com>
Jan 17 02:49:34 wip postfix/qmgr[16064]: 6E1E51BCC0C7: from=<******@gmail.com>, size=2007, nrcpt=1 (queue active)
Jan 17 02:49:34 wip amavis[14195]: (14195-02) (!!)WARN: all primary virus scanners failed, considering backups
Jan 17 02:49:41 wip postfix/smtpd[5424]: connect from unknown[127.0.0.1]
Jan 17 02:49:41 wip postfix/trivial-rewrite[25854]: warning: do not list domain website.com in BOTH mydestination and virtual_mailbox_domains
Jan 16 23:49:41 wip postfix/smtpd[5424]: 149681BCD111: client=mail-ew0-f209.google.com[209.85.219.209]
Jan 17 02:49:41 wip postfix/cleanup[25912]: 149681BCD111: message-id=<0247A40E-360E-4722-A18B-A88B95F001B9@gmail.com>
Jan 17 02:49:41 wip postfix/qmgr[16064]: 149681BCD111: from=<******@gmail.com>, size=2397, nrcpt=1 (queue active)
Jan 16 23:49:41 wip postfix/smtpd[5424]: disconnect from unknown[127.0.0.1]
Jan 17 02:49:41 wip postfix/trivial-rewrite[25854]: warning: do not list domain website.com in BOTH mydestination and virtual_mailbox_domains
Jan 17 02:49:41 wip amavis[14195]: (14195-02) Passed CLEAN, [209.85.219.209] [x.x.x.x] <******@gmail.com> -> <emailuser@website.com>, Message-ID: <0247A40E-360E-4722-A18B-A88B95F001B9@gmail.com>, mail_id: FiCD4crbiQPw, Hits: 3.384, size: 2007, queued_as: 149681BCD111, dkim_id=@gmail.com,******@gmail.com, 6534 ms
Jan 17 02:49:41 wip postfix/smtp[26024]: 6E1E51BCC0C7: to=<emailuser@website.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.7, delays=0.16/0.01/0/6.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=14195-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 149681BCD111)
Jan 17 02:49:41 wip postfix/qmgr[16064]: 6E1E51BCC0C7: removed
Jan 17 02:49:41 wip postfix/local[5447]: 149681BCD111: to=<emailuser@website.com>, relay=local, delay=0.08, delays=0.01/0.06/0/0.01, dsn=5.1.1, status=bounced (unknown user: "emailuser")
Jan 17 02:49:41 wip postfix/cleanup[25912]: 279071BCD113: message-id=<20100116234941.279071BCD113@website.com>
Jan 17 02:49:41 wip postfix/qmgr[16064]: 279071BCD113: from=<>, size=4087, nrcpt=1 (queue active)
Jan 17 02:49:41 wip postfix/bounce[5496]: 149681BCD111: sender non-delivery notification: 279071BCD113
Jan 17 02:49:41 wip postfix/qmgr[16064]: 149681BCD111: removed
Jan 17 02:49:43 wip postfix/smtp[5519]: 279071BCD113: to=<******@gmail.com>, relay=gmail-smtp-in.l.google.com[72.14.221.114]:25, delay=2.4, delays=0.02/0.01/2.1/0.24, dsn=2.0.0, status=sent (250 2.0.0 OK 1263685783 e11si8927169fga.14)
Jan 17 02:49:43 wip postfix/qmgr[16064]: 279071BCD113: removed
Jan 17 02:50:04 wip postfix/smtpd[25768]: disconnect from mail-ew0-f209.google.com[209.85.219.209]
Jan 17 02:51:33 wip postfix/trivial-rewrite[25854]: warning: do not list domain website.com in BOTH mydestination and virtual_mailbox_domains
Jan 17 02:51:33 wip postfix/cleanup[10168]: D6AA21BCD111: message-id=<2AD65C81-522F-4DB5-8606-5A1E79023D99@website.com>
Jan 17 02:51:34 wip postfix/qmgr[16064]: D6AA21BCD111: from=<emailuser@website.com>, size=5475, nrcpt=1 (queue active)
Jan 17 02:51:34 wip amavis[14194]: (14194-03) (!!)WARN: all primary virus scanners failed, considering backups
Jan 17 02:51:40 wip postfix/smtpd[22380]: connect from unknown[127.0.0.1]
Jan 17 02:51:40 wip postfix/trivial-rewrite[25854]: warning: do not list domain website.com in BOTH mydestination and virtual_mailbox_domains
Jan 17 02:51:40 wip postfix/cleanup[10168]: 837501BCD112: message-id=<2AD65C81-522F-4DB5-8606-5A1E79023D99@website.com>
Jan 16 23:51:40 wip postfix/smtpd[22380]: disconnect from unknown[127.0.0.1]
Jan 17 02:51:40 wip postfix/qmgr[16064]: 837501BCD112: from=<emailuser@website.com>, size=5865, nrcpt=1 (queue active)
Jan 17 02:51:40 wip postfix/trivial-rewrite[25854]: warning: do not list domain website.com in BOTH mydestination and virtual_mailbox_domains
Jan 17 02:51:40 wip amavis[14194]: (14194-03) Passed CLEAN, [x.x.x.x] [x.x.x.x] <emailuser@website.com> -> <emailuser@website.com>, Message-ID: <2AD65C81-522F-4DB5-8606-5A1E79023D99@website.com>, mail_id: vjMOE5dP+B1P, Hits: 4.462, size: 5475, queued_as: 837501BCD112, 6541 ms
Jan 17 02:51:40 wip postfix/smtp[11336]: D6AA21BCD111: to=<emailuser@website.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.8, delays=0.21/0.01/0/6.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=14194-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 837501BCD112)
Jan 17 02:51:40 wip postfix/qmgr[16064]: D6AA21BCD111: removed
Jan 17 02:51:40 wip postfix/local[22482]: 837501BCD112: to=<emailuser@website.com>, relay=local, delay=0.08, delays=0.06/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "emailuser")
Jan 17 02:51:40 wip postfix/cleanup[10168]: 961AE1BCD113: message-id=<20100116235140.961AE1BCD113@website.com>
Jan 17 02:51:40 wip postfix/qmgr[16064]: 961AE1BCD113: from=<>, size=7547, nrcpt=1 (queue active)
Jan 17 02:51:40 wip postfix/bounce[22486]: 837501BCD112: sender non-delivery notification: 961AE1BCD113
Jan 17 02:51:40 wip postfix/trivial-rewrite[25854]: warning: do not list domain website.com in BOTH mydestination and virtual_mailbox_domains
Jan 17 02:51:40 wip postfix/qmgr[16064]: 837501BCD112: removed
Jan 17 02:51:40 wip postfix/local[22482]: 961AE1BCD113: to=<emailuser@website.com>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (unknown user: "emailuser")
Jan 17 02:51:40 wip postfix/qmgr[16064]: 961AE1BCD113: removed


maverick 17th January 2010 12:03

I've just done a migration to using Postfix etc myself using the excellent guide on this site and would reccomend either running through that or at least using it as a reference for checking how you have configured your site.

The maillog you post shows some issues, such as duplicate entries for host-domain and virtual domain definitions, that you should try and address.

Not being an expert on Linux my only other advice,, based on issues I had, were to disable SELinux security and the firewall until you have everything working and then make small changes to secure the server.

Good luck

Mark

aurasdoom 17th January 2010 13:26

Really guys it isn't working. I'm losing my mind over here by the hour. I've renamed myhostname so that there aren't any duplicates in virtual-domains.

But of course that wasn't the problem, it couldn't be that simple.

Please, for the love of god 'cause I haven't done this before, tell me what are the steps to follow in ISPConfig make sure I at least can receive emails.

I even added right now my domain in the whitelist with type recipient and it still bounces the email on the count that the user i'm trying to send to (on my domain) doesn't exist. But the hell it does exist.

I'll post the mysql query log with what queries postfix does when it receives an email I send from gmail and which queries return something or not based on what's in the table.

Quote:

F 3290 Query SELECT transport FROM mail_transport WHERE domain='*' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='*' and active = 'y' and server_id = 1
3291 Connect ispconfig@localhost on dbispconfig
F 3291 Query SELECT domain FROM mail_domain WHERE domain='gmail.com' and active = 'y' and server_id = 1
3292 Connect ispconfig@localhost on dbispconfig
F 3292 Query SELECT domain FROM mail_transport WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3292 Query SELECT domain FROM mail_transport WHERE domain='com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='gmailuser@gmail.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='.com' and active = 'y' and server_id = 1
T 3291 Query SELECT domain FROM mail_domain WHERE domain='website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='emailuser@website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='.com' and active = 'y' and server_id = 1
3293 Connect ispconfig@localhost on dbispconfig
F 3293 Query SELECT access FROM mail_access WHERE source='mail-ew0-f209.google.com' and type = 'client' and active = 'y'
F 3293 Query SELECT access FROM mail_access WHERE source='google.com' and type = 'client' and active = 'y'
F 3293 Query SELECT access FROM mail_access WHERE source='com' and type = 'client' and active = 'y'
F 3293 Query SELECT access FROM mail_access WHERE source='209.85.219.209' and type = 'client' and active = 'y'
F 3293 Query SELECT access FROM mail_access WHERE source='209.85.219' and type = 'client' and active = 'y'
F 3293 Query SELECT access FROM mail_access WHERE source='209.85' and type = 'client' and active = 'y'
F 3293 Query SELECT access FROM mail_access WHERE source='209' and type = 'client' and active = 'y'
3294 Connect ispconfig@localhost on dbispconfig
F 3294 Query SELECT access FROM mail_access WHERE source='gmailuser@gmail.com' and type = 'sender' and active = 'y' and server_id = 1
F 3294 Query SELECT access FROM mail_access WHERE source='gmail.com' and type = 'sender' and active = 'y' and server_id = 1
F 3294 Query SELECT access FROM mail_access WHERE source='com' and type = 'sender' and active = 'y' and server_id = 1
F 3294 Query SELECT access FROM mail_access WHERE source='gmailuser@' and type = 'sender' and active = 'y' and server_id = 1
3295 Connect ispconfig@localhost on dbispconfig
F 3295 Query SELECT access FROM mail_access WHERE source='emailuser@website.com' and type = 'recipient' and active = 'y' and server_id = 1
T 3295 Query SELECT access FROM mail_access WHERE source='website.com' and type = 'recipient' and active = 'y' and server_id = 1
F 3295 Query SELECT access FROM mail_access WHERE source='com' and type = 'recipient' and active = 'y' and server_id = 1
F 3295 Query SELECT access FROM mail_access WHERE source='emailuser@' and type = 'recipient' and active = 'y' and server_id = 1
3296 Connect ispconfig@localhost on dbispconfig
F 3296 Query SELECT destination FROM mail_forwarding WHERE source='emailuser@website.com' and active = 'y' and server_id = 1
3297 Connect ispconfig@localhost on dbispconfig
T 3297 Query SELECT email FROM mail_user WHERE email='emailuser@website.com' and postfix = 'y' and server_id = 1
F 3291 Query SELECT domain FROM mail_domain WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3292 Query SELECT domain FROM mail_transport WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3292 Query SELECT domain FROM mail_transport WHERE domain='com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='gmailuser@gmail.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='.com' and active = 'y' and server_id = 1
T 3291 Query SELECT domain FROM mail_domain WHERE domain='website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='emailuser@website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='.com' and active = 'y' and server_id = 1
F 3296 Query SELECT destination FROM mail_forwarding WHERE source='emailuser@website.com' and active = 'y' and server_id = 1
3298 Connect ispconfig@localhost on dbispconfig
T 3298 Query SELECT email FROM mail_user WHERE email='emailuser@website.com' and postfix = 'y' and server_id = 1
T 3291 Query SELECT domain FROM mail_domain WHERE domain='website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='emailuser@website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='website.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='.com' and active = 'y' and server_id = 1
F 3296 Query SELECT destination FROM mail_forwarding WHERE source='gmailuser@gmail.com' and active = 'y' and server_id = 1
F 3298 Query SELECT email FROM mail_user WHERE email='gmailuser@gmail.com' and postfix = 'y' and server_id = 1
F 3296 Query SELECT destination FROM mail_forwarding WHERE source='@gmail.com' and active = 'y' and server_id = 1
F 3298 Query SELECT email FROM mail_user WHERE email='@gmail.com' and postfix = 'y' and server_id = 1
F 3291 Query SELECT domain FROM mail_domain WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3292 Query SELECT domain FROM mail_transport WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3292 Query SELECT domain FROM mail_transport WHERE domain='com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='gmailuser@gmail.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='gmail.com' and active = 'y' and server_id = 1
F 3290 Query SELECT transport FROM mail_transport WHERE domain='.com' and active = 'y' and server_id = 1
mail_transport and mail_forwarding tables are empty

aurasdoom 17th January 2010 14:12

Hm... I found the reason for:
Quote:

Jan 17 02:49:41 wip postfix/local[5447]: 149681BCD111: to=<emailuser@website.com>, relay=local, delay=0.08, delays=0.01/0.06/0/0.01, dsn=5.1.1, status=bounced (unknown user: "emailuser")
The user emailuser doesn't exist on linux. If I add it:

Quote:

Jan 17 15:06:26 wip postfix/local[28336]: 848591BCD137: to=<emailuser@website.com>, relay=local, delay=0.19, delays=0.04/0.1/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
But obviously it goes to the mailbox of the linux user and not the virtual mailbox.

So here lies the problem. Which module handles this? And what's wrong with it's configuration? Note that before this I told ISPConfig to remake it's configuration files.

LE: The problem must be in SASL and in postfix. I'm running CentOS 5.4 i think (either this or 5.3) and the first thing I found is that the smtpd.conf file was not configured.
SASL's smtpd.conf file in centos is in /usr/lib/sasl2/smtpd.conf and ISPConfig tries to write /etc/postfix/sasl/smptd.conf
Anyway I configured them both properly.. I think:
Quote:

Originally Posted by smtpd.conf
[root@wip saslauthd]# cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: localhost
sql_user: ispconfig
sql_passwd: blablabla
sql_database: dbispconfig
sql_select: select password from mail_user where email = '%u'

Quote:

Originally Posted by saslauthd
[root@wip saslauthd]# cat /etc/sysconfig/saslauthd
# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/var/spool/postfix/var/run/saslauthd

# Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled with the ablity to use.
MECH=pam

# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS="-n 2"

Quote:

[root@wip saslauthd]# saslauthd -v
saslauthd 2.1.22
authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap
Quote:

Originally Posted by main.cf
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
myhostname = ns1.wip.ro
mynetworks = 127.0.0.0/8 [::1]/128
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_authorized_xforward_hosts = 127.0.0.0/8
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_recipient_restrictions = permit_mynetworks, check_recipient_access pcre:/etc/postfix/no_relay.re, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
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_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
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
relayhost =
mailbox_size_limit = 0
message_size_limit = 0

Even later edit: I don't see anywhere in postfix to configure SASL parameters

till 17th January 2010 21:22

Download the latest ispconfig (3.0.1.6), unpavk it and then run the update.php script again and select to reconfigure services. It is not nescessary to change any file manually on centos 5.4 32bit or 64Bit, and I'am doing this installs daily, they are just working out of the box. Make sure that you followed the perfect server guide to the letter before you installed ispconfig.

aurasdoom 17th January 2010 21:47

Yes, I followed the perfect server guide and yes I already ran the update.php this morning to try again and no, it didn't fix it.

I managed to isolate the problem to postfix not using sasl properly. When connecting to the smtp port it's not using authentication at all.

Code:

$ telnet website.com 25
Trying X.X.X.X...
Connected to website.com.
Escape character is '^]'.
220 ns1.website.com ESMTP Postfix
helo website.com
250 ns1.website.com
exit
502 5.5.2 Error: command not recognized
quit
221 2.0.0 Bye


till 17th January 2010 23:07

Then you might have compiled postfix without sasl. But sasl is not even needed to receive emails, it is just needed when you send emails to non local recipients. So I dont think that thats the problem, most likely your postfix does not even support virtual users at all or has no mysql compiled in. You should recompile and reinstall tzhe new postfix as described in the perfect server guide:

http://www.howtoforge.com/perfect-se...ispconfig-3-p4

aurasdoom 17th January 2010 23:17

I don't know about sasl support but you can see above that mysql works but virtual users don't and that's why it keeps bouncing emails. Also, yes, i did compile it like that. How can I check what modules postfix is compiled with?

till 17th January 2010 23:27

Please install squirrelmail on the server if you did it not already. Then login to a local email account in squirrelmail and send a email to this exact same email account. Then post all lines that got added in the mail log file.

Also run these commands and post the output:

postconf -d | grep sasl

and

postconf -n | grep sasl

aurasdoom 18th January 2010 00:42

Here's from maillog after trying to send from squirrelmail:

Quote:

Jan 18 01:38:15 wip sendmail[7700]: o0HMcFJi007700: Authentication-Warning: wip.ro: apache set sender to auras@wip.ro using -f
Jan 18 01:38:16 wip sendmail[7700]: o0HMcFJi007700: from=auras@wip.ro, size=507, class=0, nrcpts=1, msgid=<50481.79.118.174.214.1263767892.squirrel@wi p.ro>, relay=apache@localhost
Jan 18 01:38:17 wip sendmail[7700]: o0HMcFJi007700: to=auras@wip.ro, delay=00:00:02, xdelay=00:00:00, mailer=relay, pri=30507, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Not that it's any concludent. Apparently it's trying to use sendmail which isn't running.

Quote:

# postconf -d | grep sasl
broken_sasl_auth_clients = no
lmtp_sasl_auth_enable = no
lmtp_sasl_mechanism_filter =
lmtp_sasl_password_maps =
lmtp_sasl_path =
lmtp_sasl_security_options = noplaintext, noanonymous
lmtp_sasl_tls_security_options = $lmtp_sasl_security_options
lmtp_sasl_tls_verified_security_options = $lmtp_sasl_tls_security_options
lmtp_sasl_type = cyrus
smtp_sasl_auth_enable = no
smtp_sasl_mechanism_filter =
smtp_sasl_password_maps =
smtp_sasl_path =
smtp_sasl_security_options = noplaintext, noanonymous
smtp_sasl_tls_security_options = $smtp_sasl_security_options
smtp_sasl_tls_verified_security_options = $smtp_sasl_tls_security_options
smtp_sasl_type = cyrus
smtpd_sasl_auth_enable = no
smtpd_sasl_authenticated_header = no
smtpd_sasl_exceptions_networks =
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = cyrus
Quote:

# postconf -n | grep sasl
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes


All times are GMT +2. The time now is 12:59.

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